Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The frame peer interface specifies the methods that all implementations of Abstract Window Toolkit frames must define.
public interface java.awt.peer.FramePeer extends java.awt.peer.WindowPeer { // Methods public abstract void setCursor(int cursorType); public abstract void setIconImage(Image im); public abstract void setMenuBar(MenuBar mb); public abstract void setResizable(boolean resizeable); public abstract void setTitle(String title); }
public abstract void setCursor(int cursorType)Sets the cursor image to be one of the predefined cursors.
Parameter Description cursorType one of the predefined cursor constants defined above.
public abstract void setIconImage(Image im)Sets the image to display when this frame is iconized.
Note that not all platforms support the concept of iconizing a window.
Parameter Description image the icon image to be displayed
public abstract void setMenuBar(MenuBar mb)Sets the menubar of this frame to the specified menu bar.
Parameter Description mb the new menu bar
public abstract void setResizable(boolean resizeable)Determines whether this frame should be resizable.
Parameter Description resizable true if the frame should be resizable; false otherwise.
public abstract void setTitle(String title)Sets the title of this frame to the specified title.
Parameter Description title the new title of this frame, or null to delete the title.