Example of Appletication
// Allow this applet to run as an application also
public static void main( String args[] ) {
// create application Frame and resize
Frame app = new Frame( "Application" );
// register window handler to terminate application
app.addWindowListener( new CloseWindowAndExit() );
// create applet instance
MyFrame m = new MyFrame();
// initialize and start the applet
// add applet to center of Frame
app.add( m, BorderLayout.CENTER );
// display the frame (everything attached is painted)