| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.event |
Provides interfaces and classes for dealing with different types of events fired by AWT components.
|
| java.awt.im.spi |
Provides interfaces that enable the development of input methods that can be used with any Java runtime environment.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Dialog
A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user.
|
class |
FileDialog
The
FileDialog class displays a dialog window from which the user can select a file.
|
class |
Frame
A
Frame is a top-level window with a title and a border.
|
| Modifier and Type | Method and Description |
|---|---|
Window |
KeyboardFocusManager.getActiveWindow()
Returns the active Window, if the active Window is in the same context as the calling thread.
|
Window |
KeyboardFocusManager.getFocusedWindow()
Returns the focused Window, if the focused Window is in the same context as the calling thread.
|
Window |
GraphicsDevice.getFullScreenWindow()
Returns the
Window object representing the full-screen window if the device is in full-screen mode.
|
protected Window |
KeyboardFocusManager.getGlobalActiveWindow()
Returns the active Window, even if the calling thread is in a different context than the active Window.
|
protected Window |
KeyboardFocusManager.getGlobalFocusedWindow()
Returns the focused Window, even if the calling thread is in a different context than the focused Window.
|
Window |
Window.getOwnedWindows()
Return an array containing all the windows this window currently owns.
|
Window |
Window.getOwner()
Returns the owner of this window.
|
static Window |
Window.getOwnerlessWindows()
Returns an array of all
Windows created by this application that have no owner.
|
static Window |
Window.getWindows()
Returns an array of all
Windows, both owned and ownerless, created by this application.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java |
Toolkit.createWindow(Window
Creates this toolkit's implementation of
Window using the specified peer interface.
|
Component |
FocusTraversalPolicy.getInitialComponent(Window
Returns the Component that should receive the focus when a Window is made visible for the first time.
|
void |
GraphicsDevice.setFullScreenWindow(Window
Enter full-screen mode, or return to windowed mode.
|
protected void |
KeyboardFocusManager.setGlobalActiveWindow(Window
Sets the active Window.
|
protected void |
KeyboardFocusManager.setGlobalFocusedWindow(Window
Sets the focused Window.
|
| Constructor and Description | |
|---|---|
Dialog(Window
Constructs an initially invisible, modeless
Dialog with the specified owner
Window and an empty title.
|
|
Dialog(Window
Constructs an initially invisible
Dialog with the specified owner
Window and modality and an empty title.
|
|
Dialog(Window
Constructs an initially invisible, modeless
Dialog with the specified owner
Window and title.
|
|
Dialog(Window
Constructs an initially invisible
Dialog with the specified owner
Window, title and modality.
|
|
Dialog(Window
Constructs an initially invisible
Dialog with the specified owner
Window, title, modality and
GraphicsConfiguration.
|
|
Window(Window
Constructs a new, initially invisible window with the specified
Window as its owner.
|
|
Window(Window
Constructs a new, initially invisible window with the specified owner
Window and a
GraphicsConfiguration of a screen device.
|
| Modifier and Type | Method and Description |
|---|---|
Window |
WindowEvent.getOppositeWindow()
Returns the other Window involved in this focus or activation change.
|
Window |
WindowEvent.getWindow()
Returns the originator of the event.
|
| Constructor and Description | |
|---|---|
WindowEvent(Window
Constructs a
WindowEvent object.
|
|
WindowEvent(Window
Constructs a
WindowEvent object with the specified previous and new window states.
|
|
WindowEvent(Window
Constructs a
WindowEvent object with the specified opposite
Window.
|
|
WindowEvent(Window
Constructs a
WindowEvent object.
|
| Modifier and Type | Method and Description |
|---|---|
Window |
InputMethodContext.createInputMethodWindow(String
Creates a top-level window for use by the input method.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JDialog
The main class for creating a dialog window.
|
class |
JFrame
An extended version of
java.awt.Frame that adds support for the JFC/Swing component architecture.
|
class |
JWindow
A
JWindow is a container that can be displayed anywhere on the user's desktop.
|
| Modifier and Type | Method and Description |
|---|---|
static Window |
SwingUtilities.getWindowAncestor(Component
Returns the first
Window ancestor of
c, or
null if
c is not contained inside a
Window.
|
static Window |
SwingUtilities.windowForComponent(Component
Returns the first
Window ancestor of
c, or
null if
c is not contained inside a
Window.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RepaintManager.addDirtyRegion(Window
Adds
window to the list of
Components that need to be repainted.
|
| Constructor and Description | |
|---|---|
JDialog(Window
Creates a modeless dialog with the specified
Window as its owner and an empty title.
|
|
JDialog(Window
Creates a dialog with an empty title and the specified modality and
Window as its owner.
|
|
JDialog(Window
Creates a modeless dialog with the specified title and owner
Window.
|
|
JDialog(Window
Creates a dialog with the specified title, owner
Window and modality.
|
|
JDialog(Window
Creates a dialog with the specified title, owner
Window, modality and
GraphicsConfiguration.
|
|
JWindow(Window
Creates a window with the specified owner window.
|
|
JWindow(Window
Creates a window with the specified owner window and
GraphicsConfiguration of a screen device.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicToolBarUI
|