JavaTM 2 Platform
Standard Edition

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 dispatch themselves.
Adjustable The interface for objects which have an adjustable numeric value contained within a bounded range of values.
Composite The Composite interface, along with CompositeContext, defines the methods to compose a draw primitive with the underlying graphics area.
CompositeContext The CompositeContext interface defines the encapsulated and optimized environment for a compositing operation.
ItemSelectable The interface for objects which contain a set of items for which zero or more can be selected.
LayoutManager Defines the interface for classes that know how to layout Containers.
LayoutManager2 Defines an interface for classes that know how to layout Containers based on a layout constraints object.
MenuContainer The super class of all menu related containers.
Paint This Paint interface defines how color patterns can be generated for Graphics2D operations.
PaintContext The PaintContext interface defines the encapsulated and optimized environment to generate color patterns in device space for fill or stroke operations on a Graphics2D.
PrintGraphics An abstract class which provides a print graphics context for a page.
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.
AWTPermission This class is for AWT permissions.
BasicStroke The BasicStroke class defines a basic set of rendering attributes for the outlines of graphics primitives.
BorderLayout A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center.
Button This class creates a labeled button.
Canvas A 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 A CardLayout object is a layout manager for a container.
Checkbox A check box is a graphical component that can be in either an "on" (true) or "off" (false) state.
CheckboxGroup The CheckboxGroup class is used to group together a set of Checkbox buttons.
CheckboxMenuItem This class represents a check box that can be included in a menu.
Choice The Choice class presents a pop-up menu of choices.
Color A class to 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.
ComponentOrientation The ComponentOrientation class encapsulates the language-sensitive orientation that is to be used to order the elements of a component or of text.
Container A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components.
Cursor A class to encapsulate the bitmap representation of the mouse cursor.
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.
Dimension The Dimension class encapsulates the width and height of a component (in integer precision) in a single object.
Event Event is a platform-independent class that encapsulates events from the platform's Graphical User Interface in the Java 1.0 event model.
EventQueue EventQueue is a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
FileDialog The FileDialog class displays a dialog window from which the user can select a file.
FlowLayout A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph.
Font The Font class represents fonts.
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.
GradientPaint The GradientPaint class provides a way to fill a Shape with a linear color gradient pattern.
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 geometry, coordinate transformations, color management, and text layout.
GraphicsConfigTemplate The GraphicsConfigTemplate class is used to obtain a valid GraphicsConfiguration.
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.
Insets An Insets object is a representation of the borders of a container.
Label A Label object is a component for placing text in a container.
List The List component presents the user with a scrolling list of text items.
MediaTracker The MediaTracker class is a utility class to track the status of a number of media objects.
Menu A Menu object is a pull-down menu component that is deployed from a menu bar.
MenuBar The MenuBar class encapsulates the platform's concept of a menu bar bound to a frame.
MenuComponent The abstract class MenuComponent is the superclass of all menu-related components.
MenuItem All items in a menu must belong to the class MenuItem, or one of its subclasses.
MenuShortcut A class which represents a keyboard accelerator for a MenuItem.
Panel Panel is the simplest container class.
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.
PopupMenu A class that implements a menu which can be dynamically popped up at a specified position within a component.
PrintJob An abstract class which initiates and executes a print job.
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.
RenderingHints The RenderingHints class contains rendering hints that can be used by the Graphics2D class, and classes that implement BufferedImageOp and Raster.
RenderingHints.Key Defines the base type of all keys used to control various aspects of the rendering and imaging pipelines.
Scrollbar The Scrollbar class embodies a scroll bar, a familiar user-interface object.
ScrollPane A container class which implements automatic horizontal and/or vertical scrolling for a single child component.
SystemColor A class to encapsulate symbolic colors representing the color of GUI objects on a system.
TextArea A TextArea object is a multi-line region that displays text.
TextComponent The TextComponent class is the superclass of any component that allows the editing of some text.
TextField A TextField object is a text component that allows for the editing of a single line of text.
TexturePaint The TexturePaint class provides a way to fill a Shape with a texture that is specified as a BufferedImage.
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.
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 compo nents 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. ##### FILL IN ANY SPECS NEEDED BY JAVA COMPATIBILITY KIT #####

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see: -->


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.