GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Nested Class Summary | |
protected class |
|
Nested classes/interfaces inherited from class java.awt.Window | |
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container | |
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component | |
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy |
Field Summary | |
static int |
|
static int |
|
static int |
|
static int |
|
static int | |
static int | |
static int | |
static int | |
static int |
|
static int |
|
static int | |
static int |
|
static int |
|
static int |
|
static int |
|
static int |
|
static int |
|
static int |
|
static int |
|
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver | |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
AccessibleContext |
|
int |
|
int | |
static Frame[] | |
Image |
|
Rectangle |
|
MenuBar |
|
int |
|
String |
|
boolean |
|
boolean |
|
protected String |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public static final int CROSSHAIR_CURSOR
Deprecated. Use
Cursor.CROSSHAIR_CURSOR
instead.Constant for a cross-hair cursor.
- Field Value:
- 1
public static final int DEFAULT_CURSOR
Deprecated. Replaced by
Cursor.DEFAULT_CURSOR
instead.Constant for the default cursor.
- Field Value:
- 0
public static final int E_RESIZE_CURSOR
Deprecated. Use
Cursor.E_RESIZE_CURSOR
instead.Cursor used over E edge of window decorations.
- Field Value:
- 11
public static final int HAND_CURSOR
Deprecated. Use
Cursor.HAND_CURSOR
instead.Constant for a hand cursor.
- Field Value:
- 12
public static final int MOVE_CURSOR
Deprecated. Use
Cursor.MOVE_CURSOR
instead.Constant for a cursor used during window move operations.
- Field Value:
- 13
public static final int NE_RESIZE_CURSOR
Deprecated. Use
Cursor.NE_RESIZE_CURSOR
instead.Cursor used over NE corner of window decorations.
- Field Value:
- 7
public static final int NW_RESIZE_CURSOR
Deprecated. Use
Cursor.NW_RESIZE_CURSOR
instead.Cursor used over NW corner of window decorations.
- Field Value:
- 6
public static final int N_RESIZE_CURSOR
Deprecated. Use
Cursor.N_RESIZE_CURSOR
instead.Cursor used over N edge of window decorations.
- Field Value:
- 8
public static final int SE_RESIZE_CURSOR
Deprecated. Use
Cursor.SE_RESIZE_CURSOR
instead.Cursor used over SE corner of window decorations.
- Field Value:
- 5
public static final int SW_RESIZE_CURSOR
Deprecated. Use
Cursor.SW_RESIZE_CURSOR
instead.Cursor used over SW corner of window decorations.
- Field Value:
- 4
public static final int S_RESIZE_CURSOR
Deprecated. Use
Cursor.S_RESIZE_CURSOR
instead.Cursor used over S edge of window decorations.
- Field Value:
- 9
public static final int TEXT_CURSOR
Deprecated. Use
Cursor.TEXT_CURSOR
instead.Constant for a cursor over a text field.
- Field Value:
- 2
public static final int WAIT_CURSOR
Deprecated. Use
Cursor.WAIT_CURSOR
.Constant for a cursor to display while waiting for an action to complete.
- Field Value:
- 3
public static final int W_RESIZE_CURSOR
Deprecated. Use
Cursor.W_RESIZE_CURSOR
instead.Cursor used over W edge of window decorations.
- Field Value:
- 10
public Frame(String title)
Initializes a new instance ofFrame
that is not visible and has the specified title.
- Parameters:
title
- the title of this frame
public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with thisFrame
. The context is created, if necessary.
- Specified by:
- getAccessibleContext in interface Accessible
- Overrides:
- getAccessibleContext in interface Window
- Returns:
- the associated context
public int getCursorType()
Deprecated. Use
Component.getCursor()
instead.Returns the cursor type of the cursor for this window. This will be one of the constants in this class.
- Returns:
- the cursor type for this frame
public Image getIconImage()
Returns this frame's icon.
- Returns:
- this frame's icon, or
null
if this frame does not have an icon
public Rectangle getMaximizedBounds()
Returns the maximized bounds of this frame.
- Returns:
- the maximized rectangle, may be null
- Since:
- 1.4
public MenuBar getMenuBar()
Returns this frame's menu bar.
- Returns:
- this frame's menu bar, or
null
if this frame does not have a menu bar
public String getTitle()
Returns this frame's title string.
- Returns:
- this frame's title string
public boolean isResizable()
Tests whether or not this frame is resizable. This will betrue
by default.
- Returns:
true
if this frame is resizable,false
otherwise
public boolean isUndecorated()
Returns whether this frame is undecorated or not.
- Since:
- 1.4
protected String paramString()
Returns a debugging string describing this window.
- Overrides:
- paramString in interface Container
- Returns:
- a debugging string describing this window
public void remove(MenuComponent menu)
Removes the specified menu component from this frame. If it is the current MenuBar it is removed from the frame. If it is a Popup it is removed from this component. If it is any other menu component it is ignored.
- Specified by:
- remove in interface MenuContainer
- Parameters:
menu
- the menu component to remove
public void removeNotify()
Called when this container is removed from its parent container to inform it to destroy its peer. This causes the peers of all child component to be destroyed as well.
- Overrides:
- removeNotify in interface Container
public void setCursor(int type)
Deprecated. Use
Component.setCursor(Cursor)
instead.Sets the cursor for this window to the specified type. The specified type should be one of the constants in this class.
- Parameters:
type
- the cursor type
public void setMenuBar(MenuBar menuBar)
Sets this frame's menu bar. Removes any existing menu bar. If the given menu bar is part of another frame it will be removed from that frame.
- Parameters:
menuBar
- the new menu bar for this frame
public void setResizable(boolean resizable)
Sets the resizability of this frame to the specified value.
- Parameters:
resizable
-true
to make the frame resizable,false
to make it non-resizable
public void setTitle(String title)
Sets this frame's title to the specified value.
- Parameters:
title
- the new frame title
public void setUndecorated(boolean undecorated)
Disables or enables decorations for this frame. This method can only be called while the frame is not displayable.
- Throws:
IllegalComponentStateException
- if this frame is displayable
- Since:
- 1.4
GNU Classpath (0.95) |