Added Methods |
void addPropertyChangeListener(PropertyChangeListener )
|
Adds a PropertyChangeListener to the listener list. |
void addPropertyChangeListener(String, PropertyChangeListener)
|
Adds a PropertyChangeListener to the listener list for a specific property. |
void addWindowFocusListener(WindowFocusListener )
|
Adds the specified window focus listener to receive window events from this window. |
void addWindowStateListener(WindowStateListener )
|
Adds the specified window state listener to receive window events from this window. |
void createBufferStrategy(int, BufferCapabilities)
|
Creates a new strategy for multi-buffering on this component with the required buffer capabilities. |
void createBufferStrategy(int )
|
Creates a new strategy for multi-buffering on this component. |
BufferStrategy getBufferStrategy()
|
@return the buffer strategy used by this component |
Container getFocusCycleRootAncestor()
|
Always returns null because Windows have no ancestors; they represent the top of the Component hierarchy. |
Set getFocusTraversalKeys(int )
|
Gets a focus traversal key for this Window. |
boolean getFocusableWindowState()
|
Returns whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow . |
Component getMostRecentFocusOwner()
|
Returns the child Component of this Window that will receive the focus when this Window is focused. |
WindowFocusListener[] getWindowFocusListeners()
|
Returns an array of all the window focus listeners registered on this window. |
WindowListener[] getWindowListeners()
|
Returns an array of all the window listeners registered on this window. |
WindowStateListener[] getWindowStateListeners()
|
Returns an array of all the window state listeners registered on this window. |
boolean isActive()
|
Returns whether this Window is active. |
boolean isFocusCycleRoot()
|
Always returns true because all Windows must be roots of a focus traversal cycle. |
boolean isFocusableWindow()
|
Returns whether this Window can become the focused Window that is whether this Window or any of its subcomponents can become the focus owner. |
boolean isFocused()
|
Returns whether this Window is focused. |
void processWindowFocusEvent(WindowEvent )
|
Processes window focus event occuring on this window by dispatching them to any registered WindowFocusListener objects. |
void processWindowStateEvent(WindowEvent )
|
Processes window state event occuring on this window by dispatching them to any registered WindowStateListener objects. |
void removeWindowFocusListener(WindowFocusListener )
|
Removes the specified window focus listener so that it no longer receives window events from this window. |
void removeWindowStateListener(WindowStateListener )
|
Removes the specified window state listener so that it no longer receives window events from this window. |
void setFocusCycleRoot(boolean )
|
Does nothing because Windows must always be roots of a focus traversal cycle. |
void setFocusableWindowState(boolean )
|
Sets whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow . |
void setLocationRelativeTo(Component )
|
Sets the location of the window relative to the specified component. |