Java Reference
In-Depth Information
Table 26-1
Commonly Used Methods of the Frame Class
RETURNS
NAME
DESCRIPTION
void addNotify() Makes thes Frame displayable
by connecting it to a native
screen resource.
static Frame[] getFrames() Returns an array containing all
frames created by the application.
Image getIconImage() Gets the image to be dis-
played in the minimized icon.
MenuBar getMenuBar() Gets the frame's menu bar.
int getState() Gets the frame's state.
String getTitle() Gets the frame's title.
boolean isResizable() Indicates whether the frame is
resizable by the user.
String paramString() Returns theparameter string.
void remove(MenuComponent m)
Removes the frame's Menu bar.
void removeNotify() Makes the Frame un-displayable
by removing its connection to its
native screen resource.
void
setIconImage(Image image)
Sets the image to be displayed in
the minimized icon for this frame.
void
setMenuBar(MenuBar mb)
Sets the menu bar for this frame
to the specified menu bar.
void
setResizable(boolean resizable)
Sets whether this frame is
resizable by the user.
void
setState(int state)
Sets the frame's state.
void
setTitle(String title)
Sets the frame's title.
Table 26-2
Commonly Used Methods of the Window Class
RETURNS
6NAME
DESCRIPTION
void
addNotify()
Makes this Window displayable by
creating the connection to its native
screen resource.
void
addWindowListener(WindowListener l)
Adds a window listener to receive
events from this window.
void
dispose()
Releases all of the native screen
resources used by this Window.
(continues)
 
Search WWH ::




Custom Search