import java.lang.*; import java.awt.*; /**-------------------------------------------------------- 1) This app displays a Frame 2) Must create a new instance of TemplateAWTApp before the Frame appears 3) Does NOT close properly because WINDOW_DESTROY is not handled --------------------------------------------------------*/ public class TemplateAWTApp extends Frame { public TemplateAWTApp() { super("My App"); pack(); resize(300, 300); show(); } public static void main(String args[]) { new TemplateAWTApp(); } }