java.awt.Frame (JDK 1.0)
This class represents an optionally resizable top-level application window with a titlebar and other platform-dependent window decorations. setTitle() specifies a title, setMenuBar() specifies a menu bar, setCursor() specifies a cursor, and setIconImage() specifies an icon for the window. Call the pack() method of Window to initiate layout management of the window and set its initial size appropriately. Call the show() method of Window to make a frame appear on the screen or to bring it to the front of the window stack. Call hide() to remove a frame from the screen. Call the dispose() method when the Frame is no longer needed so that it can release its window system resources for reuse.
The constants defined by this class specify various cursor types. In Java 1.1, these constants and the cursor methods of Frame are deprecated in favor of the Cursor class and cursor methods of Component.
public classFrameextends Window implements MenuContainer { //Public ConstructorspublicFrame(); publicFrame(Stringtitle); //Constantspublic static final intCROSSHAIR_CURSOR; public static final intDEFAULT_CURSOR; public static final intE_RESIZE_CURSOR; public static final intHAND_CURSOR; public static final intMOVE_CURSOR; public static final intNE_RESIZE_CURSOR; public static final intNW_RESIZE_CURSOR; public static final intN_RESIZE_CURSOR; public static final intSE_RESIZE_CURSOR; public static final intSW_RESIZE_CURSOR; public static final intS_RESIZE_CURSOR; public static final intTEXT_CURSOR; public static final intWAIT_CURSOR; public static final intW_RESIZE_CURSOR; //Public Instance Methodspublic voidaddNotify(); //Overrides Windowpublic synchronized voiddispose(); //Overrides Window# public intgetCursorType(); public ImagegetIconImage(); public MenuBargetMenuBar(); public StringgetTitle(); public booleanisResizable(); public synchronized voidremove(MenuComponentm); //Overrides Component# public synchronized voidsetCursor(intcursorType); public synchronized voidsetIconImage(Imageimage); public synchronized voidsetMenuBar(MenuBarmb); public synchronized voidsetResizable(booleanresizable); public synchronized voidsetTitle(Stringtitle); //Protected Instance Methodsprotected StringparamString(); //Overrides Container}
Hierarchy:
Object->Component(ImageObserver, MenuContainer, Serializable)->Container->Window->Frame(MenuContainer)
Passed To:
Dialog(), FileDialog(), Toolkit.createFrame(), Toolkit.getPrintJob(), Window()