java.awt

Back Up Next

 

java.awt
The AWT package is the core of Java's ability to do anything and everything graphical. The AWT is abstract in that creating a 'button' does not mean a specific look and feel to the button, but an 'abstract' button. This way, a Java applet/application running on a UNIX machine will have a Motif look and feel and a Java applet running on a Windows machine will have a Windows look and feel.
Historical note: the AWT was thrown together in a scant 6 weeks
AWT architecture delegated the "look and feel" responsibility to native peers
AWT Event Model handled the messages from native peers, transformed them into Java Events, and they are dispatched to the appropriate
AWT comes with a variety of graphical elements. Some of these include buttons, dialog boxes, scroll bars, and text fields. AWT also comes with a number of classes that are not necassarily something that appears on your screen. These include graphics contexts, images, and media trackers.

In order to actually use an AWT class, you need to have imported the java.awt package. From there instantiation of new objects is straight forward.

Examples later