{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Circles - -public static void main(String args JFrame...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Circles.java // // Demonstrates mouse events and drawing on a panel. // Derived from Dots.java in Lewis and Loftus //******************************************************************** import javax.swing.*; public class Circles { //----------------------------------------------------------------- // Creates and displays the application frame.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public static void main (String args) { JFrame circlesFrame = new JFrame ("Circles"); circlesFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); circlesFrame.getContentPane().add (new CirclePanel()); circlesFrame.pack(); circlesFrame.setVisible(true); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online