Frame
. This adds a couple of frame specific
methods to the WindowPeer
interface.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.
Modifier and Type | Method and Description |
---|---|
public void | emulateActivation(boolean
activate or deactivate the window activate)Requests the peer to emulate window activation. |
public Rectangle | Returns: the bounds of an embedded frameReturns the size and location for embedded frames. |
public int | |
public void | setBoundsPrivate(int
the X location x, int the Y location y, int the width of the frame width, int the height of the frame height)Sets the size and location for embedded frames. |
public void | setMaximizedBounds(Rectangle
the maximized bounds of the frame bounds)Sets the bounds of the frame when it becomes maximized. |
public void | |
public void | setResizable(boolean
true when the frame should be resizable,
false if notSets if the frame should be resizable or not. |
public void | |
public void |
emulateActivation | back to summary |
---|---|
public void emulateActivation(boolean activate) Requests the peer to emulate window activation.
|
getBoundsPrivate | back to summary |
---|---|
public Rectangle getBoundsPrivate() Returns the size and location for embedded frames. (On embedded frames, setLocation() and setBounds() always set the frame to (0,0) for backwards compatibility.
|
getState | back to summary |
---|---|
public int getState() Returns the current state of the frame.
|
setBoundsPrivate | back to summary |
---|---|
public void setBoundsPrivate(int x, int y, int width, int height) Sets the size and location for embedded frames. (On embedded frames, setLocation() and setBounds() always set the frame to (0,0) for backwards compatibility.
|
setMaximizedBounds | back to summary |
---|---|
public void setMaximizedBounds(Rectangle bounds) Sets the bounds of the frame when it becomes maximized.
|
setMenuBar | back to summary |
---|---|
public void setMenuBar(MenuBar mb) Sets the menu bar for the frame.
|
setResizable | back to summary |
---|---|
public void setResizable(boolean resizeable) Sets if the frame should be resizable or not.
|
setState | back to summary |
---|---|
public void setState(int state) Changes the state of the frame.
|
setTitle | back to summary |
---|---|
public void setTitle(String title) Sets the title on the frame.
|