See: Description
Composite interface, along with
CompositeContext, defines the methods to compose a draw primitive with the underlying graphics area.
CompositeContext interface defines the encapsulated and optimized environment for a compositing operation.
Containers.
Paint interface defines how color patterns can be generated for
Graphics2D operations.
PaintContext interface defines the encapsulated and optimized environment to generate color patterns in device space for fill or stroke operations on a
Graphics2D.
Shape interface provides definitions for objects that represent some form of geometric shape.
Stroke interface allows a
Graphics2D object to obtain a
Shape that is the decorated outline, or stylistic representation of the outline, of the specified
Shape.
Transparency interface defines the common transparency modes for implementing classes.
AlphaComposite class implements basic alpha compositing rules for combining source and destination colors to achieve blending and transparency effects with graphics and images.
AWTEventMulticaster implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the
java.awt.event package.
AWTKeyStroke represents a key action on the keyboard, or equivalent input device.
BasicStroke class defines a basic set of rendering attributes for the outlines of graphics primitives, which are rendered with a
Graphics2D object that has its Stroke attribute set to this
BasicStroke.
Canvas component represents a blank rectangular area of the screen onto which the application can draw or from which the application can trap input events from the user.
CardLayout object is a layout manager for a container.
true) or "off" (
false) state.
CheckboxGroup class is used to group together a set of
Checkbox buttons.
Choice class presents a pop-up menu of choices.
Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by a
ColorSpace.
Desktop class allows a Java application to launch associated applications registered on the native desktop to handle a
URI or a file.
Dimension class encapsulates the width and height of a component (in integer precision) in a single object.
DisplayMode class encapsulates the bit depth, height, width, and refresh rate of a
GraphicsDevice.
Event class is obsolete and is available only for backwards compatibility.
EventQueue is a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
FileDialog class displays a dialog window from which the user can select a file.
Font class represents fonts, which are used to render text in a visible way.
FontMetrics class defines a font metrics object, which encapsulates information about the rendering of a particular font on a particular screen.
Frame is a top-level window with a title and a border.
GradientPaint class provides a way to fill a
Shape with a linear color gradient pattern.
Graphics class is the abstract base class for all graphics contexts that allow an application to draw onto components that are realized on various devices, as well as onto off-screen images.
Graphics2D class extends the
Graphics class to provide more sophisticated control over geometry, coordinate transformations, color management, and text layout.
GraphicsConfigTemplate class is used to obtain a valid
GraphicsConfiguration.
GraphicsConfiguration class describes the characteristics of a graphics destination such as a printer or monitor.
GraphicsDevice class describes the graphics devices that might be available in a particular graphics environment.
GraphicsEnvironment class describes the collection of
GraphicsDevice objects and
Font objects available to a Java(tm) application on a particular platform.
GridBagConstraints class specifies constraints for components that are laid out using the
GridBagLayout class.
GridBagLayout class is a flexible layout manager that aligns components vertically, horizontally or along their baseline without requiring that the components be of the same size.
GridBagLayoutInfo is an utility class for
GridBagLayout layout manager.
GridLayout class is a layout manager that lays out a container's components in a rectangular grid.
Image is the superclass of all classes that represent graphical images.
Insets object is a representation of the borders of a container.
Label object is a component for placing text in a container.
LinearGradientPaint class provides a way to fill a
Shape with a linear color gradient pattern.
List component presents the user with a scrolling list of text items.
MediaTracker class is a utility class to track the status of a number of media objects.
Menu object is a pull-down menu component that is deployed from a menu bar.
MenuBar class encapsulates the platform's concept of a menu bar bound to a frame.
MenuComponent is the superclass of all menu-related components.
MenuItem, or one of its subclasses.
MenuShortcutclass represents a keyboard accelerator for a MenuItem.
MouseInfo provides methods for getting information about the mouse, such as mouse pointer location and the number of mouse buttons.
Panel is the simplest container class.
(x,y) coordinate space, specified in integer precision.
Polygon class encapsulates a description of a closed, two-dimensional region within a coordinate space.
RadialGradientPaint class provides a way to fill a shape with a circular radial color gradient pattern.
Rectangle specifies an area in a coordinate space that is enclosed by the
Rectangle object's upper-left point
(x,y) in the coordinate space, its width, and its height.
RenderingHints class defines and manages collections of keys and associated values which allow an application to provide input into the choice of algorithms used by other classes which perform rendering and image manipulation services.
RenderingHints class to control various algorithm choices in the rendering and imaging pipelines.
Scrollbar class embodies a scroll bar, a familiar user-interface object.
ScrollPane.
SystemTray class represents the system tray for a desktop.
TextArea object is a multi-line region that displays text.
TextComponent class is the superclass of any component that allows the editing of some text.
TextField object is a text component that allows for the editing of a single line of text.
TexturePaint class provides a way to fill a
Shape with a texture that is specified as a
BufferedImage.
TrayIcon object represents a tray icon that can be added to the
system tray.
Window object is a top-level window with no borders and no menubar.
Font class to indicate that the specified font is bad.
Some components fire events when a user interacts with the components. The AWTEvent class and its subclasses are used to represent the events that AWT components can fire. See AWTEvent for a description of the AWT event model.
A container is a component that can contain components and other containers. A con tainer can also have a layout manager that controls the visual placement of components in the container. The AWT package contains several layout manager classes and an interface for building your own layout manager. See Container and LayoutManager for more information.
Each Component object is limited in its maximum size and its location because the values are stored as an integer. Also, a platform may further restrict maximum size and location coordinates. The exact maximum values are dependent on the platform. There is no way to change these maximum values, either in Java code or in native code. These limitations also impose restrictions on component layout. If the bounds of a Component object exceed a platform limit, there is no way to properly arrange them within a Container object. The object's bounds are defined by any object's coordinate in combination with its size on a respective axis.