its components are using the resources of underlying operating system (OS). As of JDK version 1.What is AWT and represent hierarchy of AWT?ĪWT is heavy weight i.e. Public synchronized void setCursor(int cursorType) Overrides: paramString in class Container setCursor Overrides: dispose in class Window paramString Owned by the frame will also be destroyed. Overrides: remove in class Component dispose Parameters: m - the menu component to remove. Parameters: resizable - true if this frame is resizable Public synchronized void setResizable(boolean resizable) Returns: true if the user can resize this frame Returns: the menu bar for this frame, or nullīy default, all frames are initially resizable. Parameters: image - the icon image to be displayed Not all platforms support the concept of iconizing a window. Public synchronized void setIconImage( Image image) If this frame doesn't have an icon image. Returns: the icon image for this frame, or null Parameters: title - the specified title of this frame. Public synchronized void setTitle( String title) Returns: the title of this frame, or null Overrides: addNotify in class Window getTitle Of the Frame without changing its functionality. Parameters: title - the title for the frameĬreates the Frame's peer. Sets the title for this frame to the specified title. Sets the resizable flag, which determines whether Sets the menu bar for this frame to the specified menu bar. Sets the image to display when this frame is iconized. Removes the specified menu bar from this frame. Returns the parameter String of this Frame. Indicates whether this frame is resizable. WindowDeiconified, WindowActivated, WindowDeactivated.ĬROSSHAIR_CURSOR DEFAULT_CURSOR E_RESIZE_CURSOR HAND_CURSOR MOVE_CURSOR N_RESIZE_CURSOR NE_RESIZE_CURSOR NW_RESIZE_CURSOR S_RESIZE_CURSOR SE_RESIZE_CURSOR SW_RESIZE_CURSOR TEXT_CURSOR W_RESIZE_CURSOR WAIT_CURSOR Frame()Ĭonstructs a new instance of Frame that isĬonstructs a new, initially invisible Frame object WindowOpened, WindowClosing, WindowClosed, WindowIconified, The default layout for a frame is BorderLayout.įrames are capable of generating the following types of window events: Public class Frame extends Window implements MenuContainerĪ Frame is a top-level window with a title and a border. All Packages Class Hierarchy This Package Previous Next Index
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |