|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
A Frame is a top-level window with a title. The default layout for a frame is BorderLayout.
| Field Summary | |
static int |
CROSSHAIR_CURSOR
|
static int |
DEFAULT_CURSOR
|
static int |
E_RESIZE_CURSOR
|
static int |
HAND_CURSOR
|
static int |
MOVE_CURSOR
|
static int |
N_RESIZE_CURSOR
|
static int |
NE_RESIZE_CURSOR
|
static int |
NW_RESIZE_CURSOR
|
static int |
S_RESIZE_CURSOR
|
static int |
SE_RESIZE_CURSOR
|
static int |
SW_RESIZE_CURSOR
|
static int |
TEXT_CURSOR
|
static int |
W_RESIZE_CURSOR
|
static int |
WAIT_CURSOR
|
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Frame()
Constructs a new Frame that is initially invisible. |
|
Frame(String title)
Constructs a new, initially invisible Frame with the specified title. |
|
| Method Summary | |
void |
addNotify()
Creates the Frame's peer. |
void |
dispose()
Disposes of the Frame. |
int |
getCursorType()
Return the cursor type |
Image |
getIconImage()
Returns the icon image for this Frame. |
MenuBar |
getMenuBar()
Gets the menu bar for this Frame. |
String |
getTitle()
Gets the title of the Frame. |
boolean |
isResizable()
Returns true if the user can resize the Frame. |
protected String |
paramString()
Returns the parameter String of this Frame. |
void |
remove(MenuComponent m)
Removes the specified menu bar from this Frame. |
void |
setCursor(int cursorType)
Set the cursor image to a predefined cursor. |
void |
setIconImage(Image image)
Sets the image to display when this Frame is iconized. |
void |
setMenuBar(MenuBar mb)
Sets the menubar for this Frame to the specified menubar. |
void |
setResizable(boolean resizable)
Sets the resizable flag. |
void |
setTitle(String title)
Sets the title for this Frame to the specified title. |
| Methods inherited from class java.awt.Window |
getToolkit, getWarningString, pack, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, countComponents, deliverEvent, getComponent, getComponents, getLayout, insets, layout, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeNotify, setLayout, validate |
| Methods inherited from class java.awt.Component |
action, bounds, checkImage, checkImage, createImage, createImage, disable, enable, enable, getBackground, getColorModel, getFont, getFontMetrics, getForeground, getGraphics, getParent, getPeer, gotFocus, handleEvent, hide, imageUpdate, inside, invalidate, isEnabled, isShowing, isValid, isVisible, keyDown, keyUp, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, prepareImage, prepareImage, print, printAll, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setFont, setForeground, show, size, toString, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
public static final int DEFAULT_CURSOR
public static final int CROSSHAIR_CURSOR
public static final int TEXT_CURSOR
public static final int WAIT_CURSOR
public static final int SW_RESIZE_CURSOR
public static final int SE_RESIZE_CURSOR
public static final int NW_RESIZE_CURSOR
public static final int NE_RESIZE_CURSOR
public static final int N_RESIZE_CURSOR
public static final int S_RESIZE_CURSOR
public static final int W_RESIZE_CURSOR
public static final int E_RESIZE_CURSOR
public static final int HAND_CURSOR
public static final int MOVE_CURSOR
| Constructor Detail |
public Frame()
Component.resize(int, int),
Component.show()public Frame(String title)
title - te specified titleComponent.resize(int, int),
Component.show()| Method Detail |
public void addNotify()
addNotify in class WindowContainer.removeNotify()public String getTitle()
setTitle(java.lang.String)public void setTitle(String title)
title - the specified title of this FramegetTitle()public Image getIconImage()
public void setIconImage(Image image)
image - the icon image to be displayedpublic MenuBar getMenuBar()
public void setMenuBar(MenuBar mb)
mb - the menubar being setpublic void remove(MenuComponent m)
remove in interface MenuContainerpublic void dispose()
dispose in class Windowpublic boolean isResizable()
public void setResizable(boolean resizable)
resizable - true if resizable; false otherwise.public void setCursor(int cursorType)
cursorType - one of the cursor constants defined above.public int getCursorType()
protected String paramString()
paramString in class Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||