Interface Summary Interface Description ActiveEventAn interface for events that know how to dispatch themselves. AdjustableThe interface for objects which have an adjustable numeric value contained within a bounded range of values. CompositeThe
Compositeinterface, along with
CompositeContext, defines the methods to compose a draw primitive with the underlying graphics area.
CompositeContextinterface defines the encapsulated and optimized environment for a compositing operation.
ItemSelectableThe interface for objects which contain a set of items for which zero or more can be selected. KeyEventDispatcherA KeyEventDispatcher cooperates with the current KeyboardFocusManager in the targeting and dispatching of all KeyEvents. KeyEventPostProcessorA KeyEventPostProcessor cooperates with the current KeyboardFocusManager in the final resolution of all unconsumed KeyEvents. LayoutManagerDefines the interface for classes that know how to lay out
LayoutManager2Defines an interface for classes that know how to layout Containers based on a layout constraints object. MenuContainerThe super class of all menu related containers. PaintThis
Paintinterface defines how color patterns can be generated for
PaintContextinterface defines the encapsulated and optimized environment to generate color patterns in device space for fill or stroke operations on a
PrintGraphicsAn abstract class which provides a print graphics context for a page. SecondaryLoopA helper interface to run the nested event loop. ShapeThe
Shapeinterface provides definitions for objects that represent some form of geometric shape.
Transparencyinterface defines the common transparency modes for implementing classes.
Class Summary Class Description AlphaCompositeThe
AlphaCompositeclass implements basic alpha compositing rules for combining source and destination colors to achieve blending and transparency effects with graphics and images.
AWTEventThe root event class for all AWT events. AWTEventMulticaster
AWTEventMulticasterimplements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the
AWTKeyStrokerepresents a key action on the keyboard, or equivalent input device.
AWTPermissionThis class is for AWT permissions. BasicStrokeThe
BasicStrokeclass defines a basic set of rendering attributes for the outlines of graphics primitives, which are rendered with a
Graphics2Dobject that has its Stroke attribute set to this
BorderLayoutA border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center. BufferCapabilitiesCapabilities and properties of buffers. BufferCapabilities.FlipContentsA type-safe enumeration of the possible back buffer contents after page-flipping ButtonThis class creates a labeled button. CanvasA
Canvascomponent 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.
CardLayoutobject is a layout manager for a container.
CheckboxA check box is a graphical component that can be in either an "on" (
true) or "off" (
CheckboxGroupclass is used to group together a set of
CheckboxMenuItemThis class represents a check box that can be included in a menu. ChoiceThe
Choiceclass presents a pop-up menu of choices.
Colorclass is used to encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by a
ComponentA component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. ComponentOrientationThe ComponentOrientation class encapsulates the language-sensitive orientation that is to be used to order the elements of a component or of text. ContainerA generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components. ContainerOrderFocusTraversalPolicyA FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container. CursorA class to encapsulate the bitmap representation of the mouse cursor. DefaultFocusTraversalPolicyA FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container. DefaultKeyboardFocusManagerThe default KeyboardFocusManager for AWT applications. DesktopThe
Desktopclass allows a Java application to launch associated applications registered on the native desktop to handle a
URIor a file.
DialogA 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. DimensionThe
Dimensionclass encapsulates the width and height of a component (in integer precision) in a single object.
DisplayModeclass encapsulates the bit depth, height, width, and refresh rate of a
Eventclass is obsolete and is available only for backwards compatilibility.
EventQueueis a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
FileDialogclass displays a dialog window from which the user can select a file.
FlowLayoutA flow layout arranges components in a directional flow, much like lines of text in a paragraph. FocusTraversalPolicyA FocusTraversalPolicy defines the order in which Components with a particular focus cycle root are traversed. FontThe
Fontclass represents fonts, which are used to render text in a visible way.
FontMetricsclass defines a font metrics object, which encapsulates information about the rendering of a particular font on a particular screen.
Frameis a top-level window with a title and a border.
GradientPaintclass provides a way to fill a
Shapewith a linear color gradient pattern.
Graphicsclass 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.
Graphics2Dclass extends the
Graphicsclass to provide more sophisticated control over geometry, coordinate transformations, color management, and text layout.
GraphicsConfigTemplateclass is used to obtain a valid
GraphicsConfigurationclass describes the characteristics of a graphics destination such as a printer or monitor.
GraphicsDeviceclass describes the graphics devices that might be available in a particular graphics environment.
GridBagConstraintsclass specifies constraints for components that are laid out using the
GridBagLayoutclass is a flexible layout manager that aligns components vertically, horizontally or along their baseline without requiring that the components be of the same size.
GridBagLayoutInfois an utility class for
GridLayoutclass is a layout manager that lays out a container's components in a rectangular grid.
ImageThe abstract class
Imageis the superclass of all classes that represent graphical images.
ImageCapabilitiesCapabilities and properties of images. InsetsAn
Insetsobject is a representation of the borders of a container.
JobAttributesA set of attributes which control a print job. JobAttributes.DefaultSelectionTypeA type-safe enumeration of possible default selection states. JobAttributes.DestinationTypeA type-safe enumeration of possible job destinations. JobAttributes.DialogTypeA type-safe enumeration of possible dialogs to display to the user. JobAttributes.MultipleDocumentHandlingTypeA type-safe enumeration of possible multiple copy handling states. JobAttributes.SidesTypeA type-safe enumeration of possible multi-page impositions. KeyboardFocusManagerThe KeyboardFocusManager is responsible for managing the active and focused Windows, and the current focus owner. LabelA
Labelobject is a component for placing text in a container.
LinearGradientPaintclass provides a way to fill a
Shapewith a linear color gradient pattern.
Listcomponent presents the user with a scrolling list of text items.
MediaTrackerclass is a utility class to track the status of a number of media objects.
Menuobject is a pull-down menu component that is deployed from a menu bar.
MenuBarclass encapsulates the platform's concept of a menu bar bound to a frame.
MenuComponentThe abstract class
MenuComponentis the superclass of all menu-related components.
MenuItemAll items in a menu must belong to the class
MenuItem, or one of its subclasses.
MenuShortcutclass represents a keyboard accelerator for a MenuItem.
MouseInfoprovides methods for getting information about the mouse, such as mouse pointer location and the number of mouse buttons.
MultipleGradientPaintThis is the superclass for Paints which use a multiple color gradient to fill in their raster. PageAttributesA set of attributes which control the output of a printed page. PageAttributes.ColorTypeA type-safe enumeration of possible color states. PageAttributes.MediaTypeA type-safe enumeration of possible paper sizes. PageAttributes.OrientationRequestedTypeA type-safe enumeration of possible orientations. PageAttributes.OriginTypeA type-safe enumeration of possible origins. PageAttributes.PrintQualityTypeA type-safe enumeration of possible print qualities. Panel
Panelis the simplest container class.
PointA point representing a location in
(x,y)coordinate space, specified in integer precision.
PointerInfoA class that describes the pointer position. PolygonThe
Polygonclass encapsulates a description of a closed, two-dimensional region within a coordinate space.
PopupMenuA class that implements a menu which can be dynamically popped up at a specified position within a component. PrintJobAn abstract class which initiates and executes a print job. RadialGradientPaintThe
RadialGradientPaintclass provides a way to fill a shape with a circular radial color gradient pattern.
Rectanglespecifies an area in a coordinate space that is enclosed by the
Rectangleobject's upper-left point
(x,y)in the coordinate space, its width, and its height.
RenderingHintsclass 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.KeyDefines the base type of all keys used along with the
RenderingHintsclass to control various algorithm choices in the rendering and imaging pipelines.
RobotThis class is used to generate native system input events for the purposes of test automation, self-running demos, and other applications where control of the mouse and keyboard is needed. ScrollbarThe
Scrollbarclass embodies a scroll bar, a familiar user-interface object.
ScrollPaneA container class which implements automatic horizontal and/or vertical scrolling for a single child component. ScrollPaneAdjustableThis class represents the state of a horizontal or vertical scrollbar of a
SplashScreenThe splash screen can be displayed at application startup, before the Java Virtual Machine (JVM) starts. SystemColorA class to encapsulate symbolic colors representing the color of native GUI objects on a system. SystemTrayThe
SystemTrayclass represents the system tray for a desktop.
TextAreaobject is a multi-line region that displays text.
TextComponentclass is the superclass of any component that allows the editing of some text.
TextFieldobject is a text component that allows for the editing of a single line of text.
TexturePaintclass provides a way to fill a
Shapewith a texture that is specified as a
ToolkitThis class is the abstract superclass of all actual implementations of the Abstract Window Toolkit. TrayIconA
TrayIconobject represents a tray icon that can be added to the
Windowobject is a top-level window with no borders and no menubar.
Enum Summary Enum Description Component.BaselineResizeBehaviorEnumeration of the common ways the baseline of a component can change as the size changes. Desktop.ActionRepresents an action type. Dialog.ModalExclusionTypeAny top-level window can be marked not to be blocked by modal dialogs. Dialog.ModalityTypeModal dialogs block all input to some top-level windows. GraphicsDevice.WindowTranslucencyKinds of translucency supported by the underlying system. MultipleGradientPaint.ColorSpaceTypeThe color space in which to perform the gradient interpolation. MultipleGradientPaint.CycleMethodThe method to use when painting outside the gradient bounds. TrayIcon.MessageTypeThe message type determines which icon will be displayed in the caption of the message, and a possible system sound a message may generate upon showing. Window.TypeEnumeration of available window types.
Exception Summary Exception Description AWTExceptionSignals that an Absract Window Toolkit exception has occurred. FontFormatExceptionThrown by method createFont in the
Fontclass to indicate that the specified font is bad.
HeadlessExceptionThrown 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. IllegalComponentStateExceptionSignals that an AWT component is not in an appropriate state for the requested operation.
Error Summary Error Description AWTErrorThrown when a serious Abstract Window Toolkit error has occurred.
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.
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.