BlueJ2 - import java.awt.*; import javax.swing.*; import...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.awt.*; import javax.swing.*; import java.util.Scanner; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import javax.swing.JApplet; import javax.swing.JRootPane; /** * Class paint - write a description of the class here * * @author (name) * @version (a version number) */ public class paint extends JApplet { private Triangle mytriangle; // instance variables - replace the example below with your own private int x; /** * Called by the browser or applet viewer to inform this JApplet that it * has been loaded into the system. It is always called before the first * time that the start method is called. */ public void init() { // this is a workaround for a security conflict with some browsers // including some versions of Netscape & Internet Explorer which do // not allow access to the AWT system event queue which JApplets do // on startup to check access. May not be necessary with your browser. JRootPane rootPane = this.getRootPane(); rootPane.putClientProperty("defeatSystemEventQueueCheck", Boolean.TRUE); // provide any initialisation necessary for your JApplet } /** * Called by the browser or applet viewer to inform this JApplet that it * should start its execution. It is called after the init method and * each time the JApplet is revisited in a Web page.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
*/ public void start() { // provide any code requred to run each time
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/07/2008 for the course CSC 111 taught by Professor John during the Spring '08 term at Wake Forest.

Page1 / 5

BlueJ2 - import java.awt.*; import javax.swing.*; import...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online