{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MoveStickMan - -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
//******************************************** // MoveStickMan.java // // Uses key events to move a stick figure. //******************************************** import javax.swing.JFrame; public class MoveStickMan { // ---------------------------------------------- // 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 frame = new JFrame ("Moving a Stick Figure"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new MovePanel()); frame.pack(); frame.setVisible(true); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online