Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 217 (Maintenance Release)

Package java.awt

Contains all of the classes for creating user interfaces and for painting graphics and images.


Interface Summary
ActiveEvent An interface for events that know how to dispatch themselves.
Adjustable The interface for objects which have an adjustable numeric value contained within a bounded range of values.
Composite The Composite interface defines the methods to compose a draw primitive with the underlying graphics area.
ItemSelectable The interface for objects which contain a set of items for which zero or more can be selected.
KeyEventDispatcher A KeyEventDispatcher cooperates with the current KeyboardFocusManager in the targeting and dispatching of all KeyEvents.
KeyEventPostProcessor A KeyEventPostProcessor cooperates with the current KeyboardFocusManager in the final resolution of all unconsumed KeyEvents.
LayoutManager Defines the interface for classes that know how to lay out Containers.
LayoutManager2 Defines an interface for classes that know how to layout Containers based on a layout constraints object.
Shape The Shape interface provides definitions for objects that represent some form of geometric shape.
Stroke The 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 The Transparency interface defines the common transparency modes for implementing classes.

Class Summary
AlphaComposite This AlphaComposite class implements the basic alpha compositing rules for combining source and destination pixels to achieve blending and transparency effects with graphics and images.
AWTEvent The root event class for all AWT events.
AWTEventMulticaster A class which implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the java.awt.event package.
AWTKeyStroke An AWTKeyStroke represents a key action on the keyboard, or equivalent input device.
AWTPermission This class is for AWT permissions.
BasicStroke The 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.
BorderLayout A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center.
CardLayout A CardLayout object is a layout manager for a container.
Color The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by a ColorSpace.
Component A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user.
Container A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components.
ContainerOrderFocusTraversalPolicy A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container.
Cursor A class to encapsulate the bitmap representation of the mouse cursor.
DefaultFocusTraversalPolicy A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container.
Dimension The Dimension class encapsulates the width and height of a component (in integer precision) in a single object.
EventQueue EventQueue is a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
FlowLayout A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph.
FocusTraversalPolicy A FocusTraversalPolicy defines the order in which Components with a particular focus cycle root are traversed.
Font The Font class represents fonts, which are used to render text in a visible way.
FontMetrics The FontMetrics class defines a font metrics object, which encapsulates information about the rendering of a particular font on a particular screen.
Frame A Frame is a top-level window with a title and a border.
Graphics The 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 This Graphics2D class extends the Graphics class to provide more sophisticated control over graphics operations.
GraphicsConfiguration The GraphicsConfiguration class describes the characteristics of a graphics destination such as a printer or monitor.
GraphicsDevice The GraphicsDevice class describes the graphics devices that might be available in a particular graphics environment.
GraphicsEnvironment The GraphicsEnvironment class describes the collection of GraphicsDevice objects and Font objects available to a Java(tm) application on a particular platform.
GridBagConstraints The GridBagConstraints class specifies constraints for components that are laid out using the GridBagLayout class.
GridBagLayout The GridBagLayout class is a flexible layout manager that aligns components vertically and horizontally, without requiring that the components be of the same size.
GridLayout The GridLayout class is a layout manager that lays out a container's components in a rectangular grid.
Image The abstract class Image is the superclass of all classes that represent graphical images.
ImageCapabilities Capabilities and properties of images.
Insets An Insets object is a representation of the borders of a container.
KeyboardFocusManager The KeyboardFocusManager is responsible for managing the active and focused Windows, and the current focus owner.
MediaTracker The MediaTracker class is a utility class to track the status of a number of media objects.
Point A point representing a location in (x, y) coordinate space, specified in integer precision.
Polygon The Polygon class encapsulates a description of a closed, two-dimensional region within a coordinate space.
Rectangle A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-left point (xy) in the coordinate space, its width, and its height.
SystemColor A class to encapsulate symbolic colors representing the color of native GUI objects on a system.
Toolkit This class is the abstract superclass of all actual implementations of the Abstract Window Toolkit.
Window A Window object is a top-level window with no borders and no menubar.

Exception Summary
AWTException Signals that an Absract Window Toolkit exception has occurred.
HeadlessException 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.
IllegalComponentStateException Signals that an AWT component is not in an appropriate state for the requested operation.

Error Summary
AWTError Thrown when a serious Abstract Window Toolkit error has occurred.

Package java.awt Description

Contains all of the classes for creating user interfaces and for painting graphics and images. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. The Component class is the root of all AWT components. See Component for a detailed description of properties that all AWT components share.

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.

Additional Specification


JSR 217 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 217 specification.