A Component which renders its contents in a floating,
movable window.
NOTE: A WindowPane may only be added to
a ContentPane.
Field Summary
final public static int
DISPOSE_ON_CLOSE A constant for the defaultCloseOperation property
indicating that a window should be removed from the component
hierarchy when a user attempts to close it.
final public static int
DO_NOTHING_ON_CLOSE A constant for the defaultCloseOperation property
indicating that nothing should be done when the user attempts
to close a window.
final public static int
HIDE_ON_CLOSE A constant for the defaultCloseOperation property
indicating that a window should be hidden when the user attempts
to close it.
A constant for the defaultCloseOperation property
indicating that a window should be removed from the component
hierarchy when a user attempts to close it.
Creates a new WindowPane with the specified title
and dimensions.
Parameters: title - the title Parameters: width - The width Parameters: height - The height
Returns the horizontal inset of the entire title bar (relative to the content area).
Setting this value will result in the title bar being narrower than the rest of the
content region, which may be necessary to accommodate particular border styles.
the insets
Returns the z-index of the window with respect to its parent
ContentPane. Windows with higher z-indices will
visually obscure windows with lower z-indices.
the z-index
Sets the horizontal (X) position of the WindowPane with
respect to its container.
Values must be in pixel units.
Parameters: newValue - the new position
Sets the title of the WindowPane.
Parameters: newValue - the title
setTitleBackground
public void setTitleBackground(Color newValue)(Code)
Sets the background color of the title region.
Parameters: newValue - the new color
setTitleBackgroundImage
public void setTitleBackgroundImage(FillImage newValue)(Code)
Sets the background image of the title region.
Parameters: newValue - the new background image
setTitleBarInsets
public void setTitleBarInsets(Insets newValue)(Code)
Sets the horizontal inset of the entire title bar (relative to the content area).
Setting this value will result in the title bar being narrower than the rest of the
content region, which may be necessary to accommodate particular border styles.
Parameters: newValue - the new insets
Sets the z-index of the window with respect to its parent
ContentPane. Windows with higher z-indices will
visually obscure windows with lower z-indices.
Parameters: newValue - the new z-index