Java Reference
In-Depth Information
LISTING 8.21
//********************************************************************
// Direction.java Author: Lewis/Loftus
//
// Demonstrates key events.
//********************************************************************
import
javax.swing.JFrame;
public class
Direction
{
//-----------------------------------------------------------------
// Creates and displays the application frame.
//-----------------------------------------------------------------
public static
void
main (String[] args)
{
JFrame frame =
new
JFrame ("Direction");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add (
new
DirectionPanel());
frame.pack();
frame.setVisible(
true
);
}
}
DISPLAY
Search WWH ::
Custom Search