Basic GUI Application Programming

Java provides a set of classes that forms a GUI framework called the Abstract Windowing Toolkit , or AWT for short. The purpose of the AWT is to enable developers to create one GUI program to run unchanged on multiple platforms. The AWT components all have peers, which are native GUI components. When you create a Java Button, you also create a native button, such as a Win32 button or a Motif button. The AWT is designed to fit the lowest common denominator. If a component doesn't exist on Windows, Motif, and Macs, it is not in the AWT. This is how the AWT provides for components that have an MS Windows look and feel on a Win32 platform, a Motif look and feel on Solaris, a Mac look and feel on a Mac, and so forth. ...

Get PURE Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.