|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a top-level window with title and border.
| Method Summary | |
java.awt.image.BufferedImage |
getIcon()
Returns the image that represents window icon. |
java.lang.String |
getTitle()
Returns the window's title. |
boolean |
isActive()
Returns true if the window is active (foreground). |
boolean |
isMinimized()
Returns true if the window is minizized. |
void |
setBounds(int x,
int y,
int width,
int height)
Moves and resizes this component. |
void |
setBounds(java.awt.Rectangle bounds)
Moves and resizes this component to conform to the new bounding rectangle bounds. |
void |
setLocation(int x,
int y)
Moves this component to a new location. |
void |
setLocation(java.awt.Point location)
Moves this component to a new location. |
void |
setSize(java.awt.Dimension size)
Resizes this component so that it has width size.width
and height size.height. |
void |
setSize(int width,
int height)
Resizes this window so that it has width width
and height height. |
void |
toFront()
Bring the window to front. |
| Methods inherited from interface teamdev.jxdesktop.UIElement |
getChildren, getParent, isVisible, update |
| Methods inherited from interface teamdev.jxdesktop.Screenable |
getBounds, getImage, getLocation, getSize |
| Method Detail |
public java.lang.String getTitle()
public boolean isMinimized()
public boolean isActive()
public void setSize(java.awt.Dimension size)
size.width
and height size.height.
size - the dimension specifying the new size
of this componentsetSize(int, int),
setBounds(java.awt.Rectangle)
public void setSize(int width,
int height)
width
and height height.
width - the new width of this window in pixelsheight - the new height of this window in pixelssetSize(java.awt.Dimension),
setBounds(java.awt.Rectangle),
Screenable.getBounds()public void setLocation(java.awt.Point location)
location. Point
location is given in the parent's coordinate space.
location - the point defining the top-left corner
of the new location, given in the coordinate space of this
component's parentScreenable.getLocation(),
setBounds(java.awt.Rectangle)
public void setLocation(int x,
int y)
x and y
parameters in the coordinate space of this component's parent.
x - the x-coordinate of the new location's
top-left corner in the parent's coordinate spacey - the y-coordinate of the new location's
top-left corner in the parent's coordinate spaceScreenable.getLocation(),
setBounds(java.awt.Rectangle)public void setBounds(java.awt.Rectangle bounds)
bounds. This component's new
position is specified by bounds.x and bounds.y,
and its new size is specified by bounds.width and
bounds.height
bounds - the new bounding rectangle for this componentScreenable.getBounds(),
setLocation(int, int),
setLocation(Point),
setSize(int, int),
setSize(Dimension)
public void setBounds(int x,
int y,
int width,
int height)
x and y, and the
new size is specified by width and height.
x - the new x-coordinate of this componenty - the new y-coordinate of this componentwidth - the new width of this componentheight - the new height of this
componentScreenable.getBounds(),
setLocation(int, int),
setLocation(Point),
setSize(int, int),
setSize(Dimension)public void toFront()
public java.awt.image.BufferedImage getIcon()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||