JAVA SWING GUI TUTORIAL
AWT relies on ”peer-based” rendering to achieve platform independence. But subtle difference in platforms resulted in inconsistent look-and-feel, and platform-dependent bugs. Swing avoids these problems by using a non-peer-based approach, with the result it may be slower than AWT. To recover the look-and-feel of each platform (Windows, Motif, etc), it allows programs to specify the look-and-feel. It also has a new look-and-feel, called ”Metal”. Note that AWT is not deprecated as a result of Swing.
Terminology:
Component: a user interface element that occupies screen space. E.g., button, text field, scrollbar. Container: screen area or component that can hold other components. E.g., window, panel. Event Detector: (non standard terminology?) I guess most components detects events and generates a corresponding event object. This is sent to the registered ”listeners” for this event(component?).
Get download pdf JAVA SWING GUI TUTORIAL
Related Tutorial
Tags: awt, bugs, button text, interface element, java swing, listeners, look and feel, motif, platform independence, platform windows, platforms, screen space, subtle difference, swing gui, user interface
Comments
Leave a Reply