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 container 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.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ActiveEvent
An interface for events that know how to dispatch themselves. |
| public interface | Adjustable
The interface for objects which have an adjustable numeric value contained within a bounded range of values. |
| public interface | Composite
The |
| public interface | CompositeContext
The |
| pack-priv interface | Conditional
Conditional is used by the EventDispatchThread's message pumps to determine if a given pump should continue to run, or should instead exit and yield control to the parent pump. |
| pack-priv interface | |
| public interface | ItemSelectable
The interface for objects which contain a set of items for which zero or more can be selected. |
| public interface | KeyEventDispatcher
A KeyEventDispatcher cooperates with the current KeyboardFocusManager in the targeting and dispatching of all KeyEvents. |
| public interface | KeyEventPostProcessor
A KeyEventPostProcessor cooperates with the current KeyboardFocusManager in the final resolution of all unconsumed KeyEvents. |
| public interface | LayoutManager
Defines the interface for classes that know how to lay out
|
| public interface | LayoutManager2
Defines an interface for classes that know how to layout |
| public interface | MenuContainer
The super class of all menu related containers. |
| public interface | Paint
This |
| public interface | PaintContext
The |
| public interface | PrintGraphics
An abstract class which provides a print graphics context for a page. |
| public interface | SecondaryLoop
A helper interface to run the nested event loop. |
| public interface | Shape
The |
| public interface | Stroke
The |
| public interface | Transparency
The |
| Modifier and Type | Class and Description |
|---|---|
| public class | AlphaComposite
The |
| pack-priv abstract class | |
| public class | AWTError
Thrown when a serious Abstract Window Toolkit error has occurred. |
| public abstract class | AWTEvent
The root event class for all AWT events. |
| public class | AWTEventMulticaster
|
| public class | AWTException
Signals that an Abstract Window Toolkit exception has occurred. |
| public class | AWTKeyStroke
An |
| public class | AWTPermission
Deprecated
for removal since 24. There is no replacement for this class.
This class is for AWT permissions.
|
| public class | BasicStroke
The |
| public class | BorderLayout
A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center. |
| public class | BufferCapabilities
Capabilities and properties of buffers. |
| public class | Button
This class creates a labeled button. |
| public class | Canvas
A |
| public class | CardLayout
A |
| public class | Checkbox
A check box is a graphical component that can be in either an
"on" ( |
| public class | CheckboxGroup
The |
| public class | CheckboxMenuItem
This class represents a check box that can be included in a menu. |
| public class | Choice
The |
| public class | Color
The |
| pack-priv class | |
| public abstract class | Component
A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. |
| public class | ComponentOrientation
The ComponentOrientation class encapsulates the language-sensitive orientation that is to be used to order the elements of a component or of text. |
| public class | Container
A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components. |
| public class | ContainerOrderFocusTraversalPolicy
A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container. |
| public class | Cursor
A class to encapsulate the bitmap representation of the mouse cursor. |
| public class | DefaultFocusTraversalPolicy
A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container. |
| public class | DefaultKeyboardFocusManager
The default KeyboardFocusManager for AWT applications. |
| public class | Desktop
The |
| public class | 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. |
| public class | Dimension
The |
| public class | DisplayMode
The |
| public class | Event
Deprecated
since 9. It is recommended that AWTEvent and its subclasses be
used instead
|
| pack-priv class | EventDispatchThread
EventDispatchThread is a package-private AWT class which takes events off the EventQueue and dispatches them to the appropriate AWT components. |
| public class | EventQueue
|
| public class | FileDialog
The |
| public class | FlowLayout
A flow layout arranges components in a directional flow, much like lines of text in a paragraph. |
| pack-priv class | FocusManager
This class is no longer used, but is maintained for Serialization backward-compatibility. |
| public abstract class | FocusTraversalPolicy
A FocusTraversalPolicy defines the order in which Components with a particular focus cycle root are traversed. |
| public class | Font
The |
| public class | FontFormatException
Thrown by method createFont in the |
| public abstract class | FontMetrics
The |
| public class | Frame
A |
| public class | GradientPaint
The |
| pack-priv class | |
| public abstract class | Graphics
The |
| public abstract class | Graphics2D
This |
| pack-priv abstract class | |
| public abstract class | GraphicsConfigTemplate
The |
| public abstract class | GraphicsConfiguration
The |
| public abstract class | GraphicsDevice
The |
| public abstract class | GraphicsEnvironment
The |
| public class | GridBagConstraints
The |
| public class | GridBagLayout
The |
| public class | GridBagLayoutInfo
The |
| public class | GridLayout
The |
| public class | 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. |
| public class | IllegalComponentStateException
Signals that an AWT component is not in an appropriate state for the requested operation. |
| public abstract class | Image
The abstract class |
| public class | ImageCapabilities
Capabilities and properties of images. |
| pack-priv class | ImageMediaEntry
The entry of the list of |
| public class | Insets
An |
| public class | JobAttributes
A set of attributes which control a print job. |
| public abstract class | KeyboardFocusManager
The KeyboardFocusManager is responsible for managing the active and focused Windows, and the current focus owner. |
| public class | Label
A |
| pack-priv class | LightweightDispatcher
Class to manage the dispatching of MouseEvents to the lightweight descendants and SunDropTargetEvents to both lightweight and heavyweight descendants contained by a native container. |
| public class | LinearGradientPaint
The |
| pack-priv class | LinearGradientPaintContext
Provides the actual implementation for the LinearGradientPaint. |
| public class | List
The |
| pack-priv abstract class | |
| public class | MediaTracker
The |
| public class | Menu
A |
| public class | MenuBar
The |
| public abstract class | MenuComponent
The abstract class |
| public class | MenuItem
All items in a menu must belong to the class
|
| public class | MenuShortcut
The |
| pack-priv abstract class | |
| public class | MouseInfo
|
| public abstract class | MultipleGradientPaint
This is the superclass for Paints which use a multiple color gradient to fill in their raster. |
| pack-priv abstract class | MultipleGradientPaintContext
This is the superclass for all PaintContexts which use a multiple color gradient to fill in their raster. |
| public class | PageAttributes
A set of attributes which control the output of a printed page. |
| public class | Panel
|
| public class | Point
A point representing a location in |
| public class | PointerInfo
A class that describes the pointer position. |
| public class | Polygon
The |
| public class | PopupMenu
A class that implements a menu which can be dynamically popped up at a specified position within a component. |
| public abstract class | PrintJob
An abstract class which initiates and executes a print job. |
| pack-priv class | Queue
The Queue object holds pointers to the beginning and end of one internal queue. |
| public class | RadialGradientPaint
The |
| pack-priv class | RadialGradientPaintContext
Provides the actual implementation for the RadialGradientPaint. |
| public class | Rectangle
A |
| public class | RenderingHints
The |
| public class | Robot
This 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. |
| public class | Scrollbar
The |
| public class | ScrollPane
A container class which implements automatic horizontal and/or vertical scrolling for a single child component. |
| public class | ScrollPaneAdjustable
This class represents the state of a horizontal or vertical
scrollbar of a |
| pack-priv class | SentEvent
A wrapping tag for a nested AWTEvent. |
| pack-priv class | SequencedEvent
A mechanism for ensuring that a series of AWTEvents are executed in a precise order. |
| public class | SplashScreen
The splash screen can be displayed at application startup, before the Java Virtual Machine (JVM) starts. |
| public class | SystemColor
A class to encapsulate symbolic colors representing the color of native GUI objects on a system. |
| public class | SystemTray
The |
| public class | Taskbar
The |
| public class | TextArea
A |
| public class | TextComponent
The |
| public class | TextField
A |
| public class | TexturePaint
The |
| pack-priv abstract class | |
| public abstract class | Toolkit
This class is the abstract superclass of all actual implementations of the Abstract Window Toolkit. |
| public class | TrayIcon
A |
| pack-priv class | |
| pack-priv class | WaitDispatchSupport
This utility class is used to suspend execution on a thread
while still allowing |
| public class | Window
A |