void
addNotify()
Makes this Window displayable by creating the connection to its native screen resource.
void
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
void
addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list for a specific property.
void
addWindowFocusListener(WindowFocusListener l)
Adds the specified window focus listener to receive window events from this window.
void
addWindowListener(WindowListener l)
Adds the specified window listener to receive window events from this window.
void
addWindowStateListener(WindowStateListener l)
Adds the specified window state listener to receive window events from this window.
void
applyResourceBundle(ResourceBundle rb)
void
applyResourceBundle(String rbName)
void
createBufferStrategy(int numBuffers)
Creates a new strategy for multi-buffering on this component.
void
createBufferStrategy(int numBuffers, BufferCapabilities caps)
Creates a new strategy for multi-buffering on this component with the required buffer capabilities.
void
dispose()
Releases all of the native screen resources used by this Window
, its subcomponents, and all of its owned children.
AccessibleContext
getAccessibleContext()
Gets the AccessibleContext associated with this Window.
Color
getBackground()
Gets the background color of this window.
BufferStrategy
getBufferStrategy()
Returns the BufferStrategy
used by this component.
boolean
getFocusableWindowState()
Returns whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow
.
Container
getFocusCycleRootAncestor()
Always returns null
because Windows have no ancestors; they represent the top of the Component hierarchy.
Component
getFocusOwner()
Returns the child Component of this Window that has focus if this Window is focused; returns null otherwise.
Set<AWTKeyStroke>
getFocusTraversalKeys(int id)
Gets a focus traversal key for this Window.
List<Image>
getIconImages()
Returns the sequence of images to be displayed as the icon for this window.
InputContext
getInputContext()
Gets the input context for this window.
<T extends EventListener>
T[]
getListeners(Class<T> listenerType)
Returns an array of all the objects currently registered as FooListener
s upon this Window
.
Locale
getLocale()
Gets the Locale
object that is associated with this window, if the locale has been set.
Dialog.ModalExclusionType
getModalExclusionType()
Returns the modal exclusion type of this window.
Component
getMostRecentFocusOwner()
Returns the child Component of this Window that will receive the focus when this Window is focused.
float
getOpacity()
Returns the opacity of the window.
Window[]
getOwnedWindows()
Return an array containing all the windows this window currently owns.
Window
getOwner()
Returns the owner of this window.
static Window[]
getOwnerlessWindows()
Returns an array of all Window
s created by this application that have no owner.
Shape
getShape()
Returns the shape of the window.
Toolkit
getToolkit()
Returns the toolkit of this frame.
Window.Type
getType()
Returns the type of the window.
String
getWarningString()
Gets the warning string that is displayed with this window.
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.
static Window[]
getWindows()
Returns an array of all Window
s, both owned and ownerless, created by this application.
WindowStateListener[]
getWindowStateListeners()
Returns an array of all the window state listeners registered on this window.
void
hide()
boolean
isActive()
Returns whether this Window is active.
boolean
isAlwaysOnTop()
Returns whether this window is an always-on-top window.
boolean
isAlwaysOnTopSupported()
Returns whether the always-on-top mode is supported for this window.
boolean
isAutoRequestFocus()
Returns whether this window should receive focus on subsequently being shown (with a call to
setVisible(true)
), or being moved to the front (with a call to
toFront()
).
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
isFocusCycleRoot()
Always returns true
because all Windows must be roots of a focus traversal cycle.
boolean
isFocused()
Returns whether this Window is focused.
boolean
isLocationByPlatform()
Returns true
if this Window will appear at the default location for the native windowing system the next time this Window is made visible.
boolean
isOpaque()
Indicates if the window is currently opaque.
boolean
isShowing()
Checks if this Window is showing on screen.
boolean
isValidateRoot()
Indicates if this container is a validate root.
void
pack()
Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.
void
paint(Graphics g)
Paints the container.
boolean
postEvent(Event e)
protected void
processEvent(AWTEvent e)
Processes events on this window.
protected void
processWindowEvent(WindowEvent e)
Processes window events occurring on this window by dispatching them to any registered WindowListener objects.
protected void
processWindowFocusEvent(WindowEvent e)
Processes window focus event occurring on this window by dispatching them to any registered WindowFocusListener objects.
protected void
processWindowStateEvent(WindowEvent e)
Processes window state event occurring on this window by dispatching them to any registered WindowStateListener
objects.
void
removeNotify()
Makes this Container undisplayable by removing its connection to its native screen resource.
void
removeWindowFocusListener(WindowFocusListener l)
Removes the specified window focus listener so that it no longer receives window events from this window.
void
removeWindowListener(WindowListener l)
Removes the specified window listener so that it no longer receives window events from this window.
void
removeWindowStateListener(WindowStateListener l)
Removes the specified window state listener so that it no longer receives window events from this window.
void
reshape(int x, int y, int width, int height)
void
setAlwaysOnTop(boolean alwaysOnTop)
Sets whether this window should always be above other windows.
void
setAutoRequestFocus(boolean autoRequestFocus)
Sets whether this window should receive focus on subsequently being shown (with a call to
setVisible(true)
), or being moved to the front (with a call to
toFront()
).
void
setBackground(Color bgColor)
Sets the background color of this window.
void
setBounds(int x, int y, int width, int height)
Moves and resizes this component.
void
setBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangle r
.
void
setCursor(Cursor cursor)
Set the cursor image to a specified cursor.
void
setFocusableWindowState(boolean focusableWindowState)
Sets whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow
.
void
setFocusCycleRoot(boolean focusCycleRoot)
Does nothing because Windows must always be roots of a focus traversal cycle.
void
setIconImage(Image image)
Sets the image to be displayed as the icon for this window.
void
setIconImages(List<? extends Image> icons)
Sets the sequence of images to be displayed as the icon for this window.
void
setLocation(int x, int y)
Moves this component to a new location.
void
setLocation(Point p)
Moves this component to a new location.
void
setLocationByPlatform(boolean locationByPlatform)
Sets whether this Window should appear at the default location for the native windowing system or at the current location (returned by getLocation
) the next time the Window is made visible.
void
setLocationRelativeTo(Component c)
Sets the location of the window relative to the specified component according to the following scenarios.
void
setMinimumSize(Dimension minimumSize)
Sets the minimum size of this window to a constant value.
void
setModalExclusionType(Dialog.ModalExclusionType exclusionType)
Specifies the modal exclusion type for this window.
void
setOpacity(float opacity)
Sets the opacity of the window.
void
setShape(Shape shape)
Sets the shape of the window.
void
setSize(Dimension d)
Resizes this component so that it has width d.width
and height d.height
.
void
setSize(int width, int height)
Resizes this component so that it has width width
and height height
.
void
setType(Window.Type type)
Sets the type of the window.
void
setVisible(boolean b)
Shows or hides this Window
depending on the value of parameter b
.
void
show()
void
toBack()
If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.
void
toFront()
If this Window is visible, brings this Window to the front and may make it the focused Window.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4