A flow layout arranges components in a directional flow, much
like lines of text in a paragraph. The flow direction is
determined by the… API Doc
The root event class for all AWT events.
This class and its subclasses supercede the original
Subclasses of this root… API Doc
This class is for AWT permissions.
An AWTPermission contains a target name but
no actions list; you either have the named permission
or you… API Doc
AWTEventMulticaster implements efficient and thread-safe multi-cast
event dispatching for the AWT events defined in the java.awt.event
… API Doc
The AlphaComposite class implements basic alpha
compositing rules for combining source and destination colors
to achieve blending and transparency… API Doc
Capabilities and properties of buffers. API Doc
A border layout lays out a container, arranging and resizing
its components to fit in five regions:
north, south, east, west, and center.
Each… API Doc
A Canvas component represents a blank rectangular
area of the screen onto which the application can draw or from
which the application can trap… API Doc
The BasicStroke class defines a basic set of rendering
attributes for the outlines of graphics primitives, which are rendered
with a Graphics2D… API Doc
This class creates a labeled button. The application can cause
some action to happen when the button is pushed. This image
depicts three views of… API Doc
The CheckboxGroup class is used to group together
a set of Checkbox buttons.
Exactly one check box button in a CheckboxGroup can
be in the "on"… API Doc
A CardLayout object is a layout manager for a
container. It treats each component in the container as a card.
Only one card is visible at a time,… API Doc
This class represents a check box that can be included in a menu.
Selecting the check box in the menu changes its state from
"on" to "off" or from… API Doc
A check box is a graphical component that can be in either an
"on" (true) or "off" (false) state.
Clicking on a check box changes its state from
… API Doc
The Choice class presents a pop-up menu of choices.
The current choice is displayed as the title of the menu.
The following code example… API Doc
The ComponentOrientation class encapsulates the language-sensitive
orientation that is to be used to order the elements of a component
or of text.… API Doc
The Color class is used to encapsulate colors in the default
sRGB color space or colors in arbitrary color spaces identified by a
ColorSpace. … API Doc
A class to encapsulate the bitmap representation of the mouse cursor. API Doc
A generic Abstract Window Toolkit(AWT) container object is a component
that can contain other AWT components.
Components added to a container… API Doc
The Desktop class allows a Java application to launch
associated applications registered on the native desktop to handle
a java.net.URI or a… API Doc
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.
The size of the dialog… API Doc
The Dimension class encapsulates the width and
height of a component (in integer precision) in a single object.
The class is
associated with… API Doc
The DisplayMode class encapsulates the bit depth, height,
width, and refresh rate of a GraphicsDevice. The ability to
change graphics device's… API Doc
A component is an object having a graphical representation
that can be displayed on the screen and that can interact with the
user. Examples of… API Doc
EventQueue is a platform-independent class
that queues events, both from the underlying peer classes
and from trusted application classes.
It… API Doc
The FileDialog class displays a dialog window
from which the user can select a file.
Since it is a modal dialog, when the application calls
its… API Doc
A FocusTraversalPolicy defines the order in which Components with a
particular focus cycle root are traversed. Instances can apply the policy to
… API Doc
The Font class represents fonts, which are used to
render text in a visible way.
A font provides the information needed to map sequences of
… API Doc
Thrown by method createFont in the Font class to indicate
that the specified font is bad. API Doc
The FontMetrics class defines a font metrics object, which
encapsulates information about the rendering of a particular font on a
particular… API Doc
The Graphics class is the abstract base class for
all graphics contexts that allow an application to draw onto
components that are realized on… API Doc
A Frame is a top-level window with a title and a border.
The size of the frame includes any area designated for the
border. The dimensions of… API Doc
The GradientPaint class provides a way to fill
a Shape with a linear color gradient pattern.
If Point P1 with Color C1 and Point P2 with
Color C2… API Doc
The GraphicsConfiguration class describes the
characteristics of a graphics destination such as a printer or monitor.
There can be many… API Doc
The GraphicsDevice class describes the graphics devices
that might be available in a particular graphics environment. These
include screen and… API Doc
The GraphicsEnvironment class describes the collection
of GraphicsDevice objects and Font objects
available to a Java(tm) application on a… API Doc
The GridLayout class is a layout manager that
lays out a container's components in a rectangular grid.
The container is divided into equal-sized… API Doc
The GridBagLayout class is a flexible layout
manager that aligns components vertically, horizontally or along their
baseline without requiring… API Doc
The abstract class Image is the superclass of all
classes that represent graphical images. The image must be
obtained in a platform-specific manner. API Doc
An Insets object is a representation of the borders
of a container. It specifies the space that a container must leave
at each of its edges. The… API Doc
The interface for objects which contain a set of items for
which zero or more can be selected. API Doc
Capabilities and properties of images. API Doc
A KeyEventDispatcher cooperates with the current KeyboardFocusManager in the
targeting and dispatching of all KeyEvents. KeyEventDispatchers… API Doc
The KeyboardFocusManager is responsible for managing the active and focused
Windows, and the current focus owner. The focus owner is defined as… API Doc
A Label object is a component for placing text in a
container. A label displays a single line of read-only text.
The text can be changed by the… API Doc
Defines the interface for classes that know how to lay out
Swing's painting architecture assumes the children of a
JComponent do… API Doc
The LinearGradientPaint class provides a way to fill
a Shape with a linear color gradient pattern. The user
may specify two or more gradient… API Doc
The List component presents the user with a
scrolling list of text items. The list can be set up so that
the user can choose either one item or… API Doc
The MediaTracker class is a utility class to track
the status of a number of media objects. Media objects could
include audio clips as well as… API Doc
A Menu object is a pull-down menu component
that is deployed from a menu bar.
A menu can optionally be a tear-off menu. A tear-off menu
can be… API Doc
The MenuBar class encapsulates the platform's
concept of a menu bar bound to a frame. In order to associate
the menu bar with a Frame object, call… API Doc
All items in a menu must belong to the class
MenuItem, or one of its subclasses.
The default MenuItem object embodies
a simple labeled menu… API Doc
The PaintContext interface defines the encapsulated
and optimized environment to generate color patterns in device
space for fill or stroke… API Doc
Panel is the simplest container class. A panel
provides space in which an application can attach any other
component, including other panels.
… API Doc
A point representing a location in (x,y) coordinate space,
specified in integer precision. API Doc
A class that implements a menu which can be dynamically popped up
at a specified position within a component.
As the inheritance hierarchy… API Doc
The Polygon class encapsulates a description of a
closed, two-dimensional region within a coordinate space. This
region is bounded by an arbitrary… API Doc
An abstract class which initiates and executes a print job.
It provides access to a print graphics object which renders
to an appropriate print… API Doc
A Rectangle specifies an area in a coordinate space that is
enclosed by the Rectangle object's upper-left point
in the coordinate space,… API Doc
The RadialGradientPaint class provides a way to fill a shape with
a circular radial color gradient pattern. The user may specify 2 or more
… API Doc
The RenderingHints class defines and manages collections of
keys and associated values which allow an application to provide input
into the choice… API Doc
This class is used to generate native system input events
for the purposes of test automation, self-running demos, and
other applications where… API Doc
A container class which implements automatic horizontal and/or
vertical scrolling for a single child component. The display
policy for the… API Doc
The splash screen can be displayed at application startup, before the
Java Virtual Machine (JVM) starts. The splash screen is displayed as an
… API Doc
The Stroke interface allows a
Graphics2D object to obtain a Shape that is the
decorated outline, or stylistic representation of the outline,
of… API Doc
The Shape interface provides definitions for objects
that represent some form of geometric shape. The Shape
is described by a PathIterator… API Doc
The Scrollbar class embodies a scroll bar, a
familiar user-interface object. A scroll bar provides a
convenient means for allowing a user to… API Doc
The TextComponent class is the superclass of
any component that allows the editing of some text.
A text component embodies a string of text. … API Doc
A TextField object is a text component
that allows for the editing of a single line of text.
For example, the following image depicts a frame… API Doc
A TextArea object is a multi-line region
that displays text. It can be set to allow editing or
to be read-only.
The following image shows the… API Doc
The TexturePaint class provides a way to fill a
Shape with a texture that is specified as
a BufferedImage. The size of the BufferedImage
object… API Doc
A TrayIcon object represents a tray icon that can be
added to the system tray. A
TrayIcon can have a tooltip (text), an image, a popup
menu, and… API Doc
This class is the abstract superclass of all actual
implementations of the Abstract Window Toolkit. Subclasses of
the Toolkit class are used to… API Doc
A Window object is a top-level window with no borders and no
The default layout for a window is BorderLayout.
A window must have… API Doc
Thrown when a serious Abstract Window Toolkit error has occurred. API Doc
Signals that an Abstract Window Toolkit exception has occurred. API Doc
The GridBagConstraints class specifies constraints
for components that are laid out using the
GridBagLayout class. API Doc
Thrown when code that is dependent on a keyboard, display, or mouse
is called in an environment that does not support a keyboard, display,
or mouse. API Doc
The MenuShortcutclass represents a keyboard accelerator
for a MenuItem.
Menu shortcuts are created using virtual keycodes, not characters.
For… API Doc
This Paint interface defines how color patterns
can be generated for Graphics2D operations. A class
implementing the Paint interface is added to… API Doc
A class to encapsulate symbolic colors representing the color of
native GUI objects on a system. For systems which support the dynamic
update of… API Doc
This Graphics2D class extends the
Graphics class to provide more sophisticated
control over geometry, coordinate transformations, color… API Doc