java.awt

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » java.awt 
java.awt
Java Source File NameTypeComment
ActiveEvent.javaInterface An interface for events that know how dispatch themselves. By implementing this interface an event can be placed upon the event queue and its dispatch() method will be called when the event is dispatched, using the EventDispatchThread.

This is a very useful mechanism for avoiding deadlocks.

Adjustable.javaInterface The interface for objects which have an adjustable numeric value contained within a bounded range of values.
AlphaComposite.javaClass
AttributeValue.javaClass
AWTError.javaClass Thrown when a serious Abstract Window Toolkit error has occurred.
AWTEvent.javaClass The root event class for all AWT events.
AWTEventMulticaster.javaClass A class which implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the java.awt.event package.
AWTException.javaClass Signals that an Absract Window Toolkit exception has occurred.
AWTKeyStroke.javaClass An AWTKeyStroke represents a key action on the keyboard, or equivalent input device.
AWTPermission.javaClass This class is for AWT permissions. An AWTPermission contains a target name but no actions list; you either have the named permission or you don't.

The target name is the name of the AWT permission (see below).

BasicStroke.javaClass 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. The rendering attributes defined by BasicStroke describe the shape of the mark made by a pen drawn along the outline of a Shape and the decorations applied at the ends and joins of path segments of the Shape. These rendering attributes include:
width
The pen width, measured perpendicularly to the pen trajectory.
end caps
The decoration applied to the ends of unclosed subpaths and dash segments.
BorderLayout.javaClass A border layout lays out a container, arranging and resizing its components to fit in five regions: North, South, East, West, and Center.
Button.javaClass This class creates a labeled button.
Canvas.javaClass 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.

An application must subclass the Canvas class in order to get useful functionality such as creating a custom component.

CardLayout.javaClass A CardLayout object is a layout manager for a container.
Checkbox.javaClass A check box is a graphical component that can be in either an "on" (true) or "off" (false) state. Clicking on a check box changes its state from "on" to "off," or from "off" to "on."

The following code example creates a set of check boxes in a grid layout:


 setLayout(new GridLayout(3, 1));
 add(new Checkbox("one", null, true));
 add(new Checkbox("two"));
 add(new Checkbox("three"));
 

This image depicts the check boxes and grid layout created by this code example:

The button labeled one is in the "on" state, and the other two are in the "off" state.

CheckboxGroup.javaClass The CheckboxGroup class is used to group together a set of Checkbox buttons.

Exactly one check box button in a CheckboxGroup can be in the "on" state at any given time.

CheckboxMenuItem.javaClass This class represents a check box that can be included in a menu. Clicking on the check box in the menu changes its state from "on" to "off" or from "off" to "on."

The following picture depicts a menu which contains an instance of CheckBoxMenuItem:

The item labeled Check shows a check box menu item in its "off" state.

When a check box menu item is selected, AWT sends an item event to the item.

Choice.javaClass The Choice class presents a pop-up menu of choices.
Color.javaClass This class encapsulates colors using the RGB format.
Component.javaClass A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user.
ComponentXWindow.javaClass The X window used by a component to get mouse events from the X server.
Composite.javaInterface
Conditional.javaInterface 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.
Container.javaClass A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components.

Components added to a container are tracked in a list.

ContainerOrderFocusTraversalPolicy.javaClass A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container.
Cursor.javaClass A class to encapsulate the bitmap representation of the mouse cursor.
DefaultFocusTraversalPolicy.javaClass A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container.
DefaultKeyboardFocusManager.javaClass
Dialog.javaClass A dialog component is a top level window, .
DialogXWindow.javaClass
Dimension.javaClass The Dimension class encapsulates the width and height of a component in a single object.
Event.javaClass Event is a platform-independent class that encapsulates events from the platform's Graphical User Interface in the Java 1.0 event model.
EventDispatchThread.javaClass EventDispatchThread is a package-private AWT class which takes events off the EventQueue and dispatches them to the appropriate AWT components. The Thread starts a "permanent" event pump with a call to pumpEvents(Conditional) in its run() method.
EventQueue.javaClass EventQueue is a platform-independent class that queues events, both from the underlying peer classes and from trusted application classes.
EventQueueListener.javaInterface
FileDialog.javaClass The FileDialog class displays a dialog window from which the user can select a file.
FlowLayout.javaClass A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph.
FocusTraversalPolicy.javaClass A FocusTraversalPolicy defines the order in which Components with a particular focus cycle root are traversed.
Font.javaClass A class that produces font objects.
FontMetrics.javaClass A font metrics object, which gives information about the rendering of a particular font on a particular screen.
Frame.javaClass A Frame is window with additional properties, such as a title bar, a menu bar, a cursor, and an icon image where appropriate. A Personal Profile implementation is not required to support multiple frames.
FrameXWindow.javaClass X window used for a Frame.
Graphics.javaClass 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.

A Graphics object encapsulates state information needed for the basic rendering operations that Java supports.

Graphics2D.javaClass
GraphicsConfiguration.javaClass The GraphicsConfiguration class describes the characteristics of a graphics destination such as a printer or monitor. There can be many GraphicsConfiguration objects associated with a single graphics device, representing different drawing modes or capabilities.
GraphicsDevice.javaClass The GraphicsDevice class describes the graphics devices that might be available in a particular graphics environment.
GraphicsEnvironment.javaClass The GraphicsEnvironment class describes the collection of GraphicsDevice objects and java.awt.Font objects available to a Java(tm) application on a particular platform. The resources in this GraphicsEnvironment might be local or on a remote machine.
GridBagConstraints.javaClass The GridBagConstraints class specifies constraints for components that are laid out using the GridBagLayout class.
GridBagLayout.javaClass
GridLayout.javaClass The GridLayout class is a layout manager that lays out a container's components in a rectangular grid.
HeadlessException.javaClass 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.
HeavyweightComponentXWindow.javaClass The X window used by a component, that is traditionally heavyweight, to get mouse events from the X server. This winow represents an InputOutput window in X (an opaque window that can be used to select and receive events).
IllegalComponentStateException.javaClass Signals that an AWT component is not in an appropriate state for the requested operation.
Image.javaClass The abstract class Image is the superclass of all classes that represent graphical images.
ImageCapabilities.javaClass Capabilities and properties of images.
Insets.javaClass An Insets object is a representation of the borders of a container.
ItemSelectable.javaInterface The interface for objects which contain a set of items for which zero or more can be selected.
KeyboardFocusManager.javaClass
KeyEventDispatcher.javaInterface A KeyEventDispatcher cooperates with the current KeyboardFocusManager in the targeting and dispatching of all KeyEvents.
KeyEventPostProcessor.javaInterface A KeyEventPostProcessor cooperates with the current KeyboardFocusManager in the final resolution of all unconsumed KeyEvents.
Label.javaClass A Label object is a component for placing text in a container.
LayoutManager.javaInterface Defines the interface for classes that know how to layout Containers.
LayoutManager2.javaInterface Defines an interface for classes that know how to layout Containers based on a layout constraints object.
LightweightDispatcher.javaClass Class to manage the dispatching of events to the lightweight components contained by a native container.
List.javaClass The List component presents the user with a scrolling list of text items.
MediaTracker.javaClass The MediaTracker class is a utility class to track the status of a number of media objects.
Menu.javaClass A Menu object is a pull-down menu component that is deployed from a menu bar.

A menu can optionally be a tear-off menu.

MenuBar.javaClass The MenuBar class encapsulates the platform's concept of a menu bar bound to a frame.
MenuComponent.javaClass The abstract class MenuComponent is the superclass of all menu-related components.
MenuContainer.javaInterface The super class of all menu related containers.
MenuItem.javaClass All items in a menu must belong to the class MenuItem, or one of its subclasses.

The default MenuItem object embodies a simple labeled menu item.

This picture of a menu bar shows five menu items:
The first two items are simple menu items, labeled "Basic" and "Simple". Following these two items is a separator, which is itself a menu item, created with the label "-". Next is an instance of CheckboxMenuItem labeled "Check".

MenuShortcut.javaClass A class which represents a keyboard accelerator for a MenuItem.
MWARGBGraphicsConfiguration.javaClass
MWDefaultGraphicsConfiguration.javaClass
MWFontMetrics.javaClass A font metrics object for a font.
MWGraphics.javaClass MWGraphics is an object that encapsulates a graphics context for drawing with Microwindows.
MWGraphicsConfiguration.javaClass
MWGraphicsDevice.javaClass
MWGraphicsEnvironment.javaClass This is an implementation of a GraphicsEnvironment object for the default local GraphicsEnvironment used by the JavaSoft JDK in MW environments.
MWImage.javaClass Microwindows image implementation.
MWOffscreenImage.javaClass An offscreen image created by Component.createImage(int width, int height).
MWSubimage.javaClass An offscreen image created by BufferedImage.getSubimage(int width, int height).
MWToolkit.javaClass The toolkit used by this AWT implementation based on the MicroWindows library.
Panel.javaClass Panel is the simplest container class.
Point.javaClass The Point class represents a location in a two-dimensional (xy) coordinate space.
Polygon.javaClass The Polygon class encapsulates a description of a closed, two-dimensional region within a coordinate space.
PopupMenu.javaClass A class that implements a menu which can be dynamically popped up at a specified position within a component.

As the inheritance hierarchy implies, a PopupMenu can be used anywhere a Menu can be used.

PrintGraphics.javaInterface An abstract class which provides a print graphics context for a page.
PrintJob.javaClass An abstract class which initiates and executes a print job.
QtARGBGraphicsConfiguration.javaClass
QtDefaultGraphicsConfiguration.javaClass
QtFontMetrics.javaClass A font metrics object for a font.
QtGraphics.javaClass QtGraphics is an object that encapsulates a graphics context for drawing with Qt.
QtGraphicsConfiguration.javaClass
QtGraphicsDevice.javaClass
QtGraphicsEnvironment.javaClass This is an implementation of a GraphicsEnvironment object Qtfor the default local GraphicsEnvironment used by the JavaSoft JDK in Qt environments.
QtImage.javaClass Qt image implementation.
QtOffscreenImage.javaClass An offscreen image created by Component.createImage(int width, int height).
QtRobotHelper.javaClass
QtSubimage.javaClass An offscreen image created by BufferedImage.getSubimage(int width, int height).
QtToolkit.javaClass The toolkit used by this AWT implementation based on the Qt library.
QtVolatileImage.javaClass Qt volatile image implementation.
Rectangle.javaClass 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.

A Rectangle object's width and height are public fields.

Scrollbar.javaClass The Scrollbar class embodies a scroll bar, a familiar user-interface object.
ScrollPane.javaClass A container class which implements automatic horizontal and/or vertical scrolling for a single child component.
SentEvent.javaClass A wrapping tag for a nested AWTEvent which indicates that the event was sent from another AppContext.
SequencedEvent.javaClass A mechanism for ensuring that a series of AWTEvents are executed in a precise order, even across multiple AppContexts.
Shape.javaInterface The interface for objects which represent some form of geometric shape.

This interface will be revised in the upcoming Java2D project. It is meant to provide a common interface for various existing geometric AWT classes and methods which operate on them.

Stroke.javaInterface 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.
SystemColor.javaClass A class to encapsulate symbolic colors representing the color of GUI objects on a system.
TextArea.javaClass A TextArea object is a multi-line region that displays text.
TextComponent.javaClass The TextComponent class is the superclass of any component that allows the editing of some text.

A text component embodies a string of text.

TextField.javaClass A TextField object is a text component that allows for the editing of a single line of text.

For example, the following image depicts a frame with four text fields of varying widths.

Toolkit.javaClass This class is the abstract superclass of all actual implementations of the Abstract Window Toolkit.
Transparency.javaInterface The Transparency interface defines the common transparency modes for implementing classes.
Window.javaClass A Window object is a top-level window with no borders and no menubar.
WindowXWindow.javaClass The base class for all top level windows.
X11FontMetrics.javaClass A font metrics object for a WServer font.
X11Graphics.javaClass X11Graphics is an object that encapsulates a graphics context for a particular canvas.
X11GraphicsConfig.javaClass This is an implementation of a GraphicsConfiguration object for a single X11 visual.
X11GraphicsDevice.javaClass This is an implementation of a GraphicsDevice object for a single X11 screen.
X11GraphicsEnvironment.javaClass This is an implementation of a GraphicsEnvironment object for the default local GraphicsEnvironment used by the JavaSoft JDK in X11 environments.
X11Image.javaClass
X11Toolkit.javaClass The toolkit used by this AWT implementation based on the X11 library.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.