Developing GUIs

Autor: Zbigniew M. Sikora
Rok vydání: 2003
Předmět:
DOI: 10.1016/b978-155860909-9/50008-9
Popis: Publisher Summary Java includes a number of classes for providing a graphical user interface (GUI). These classes are collectively known as the Abstract Window Toolkit (AWT). In Java versions 1.0 and 1.1, the AWT is available for developing GUIs. Java Swing classes for developing GUIs are also available with the Sun Software Development Kit (SDK) platform 2; this includes version 1.2 of the Java language, so 1.2 or a higher version of Java should be used to develop Swing programs. Swing provides a larger set of components than AWT and contains a much richer functionality than the AWT equivalents. Three basic concepts behind Swing are containers, components, and event handling. A container can be regarded as a screen or part of a screen. A container has an associated layout that determines how components are arranged when they are added to a container. Atomic graphical user components such as buttons, radio buttons, lists, and check boxes, are placed in containers. These can be top-level containers such as applets or frames, or can be placed in intermediate-level components such as panels that are placed in the top-level containers. AWT components are called heavyweight. Swing, on the other hand, is peerless, or lightweight, in that all component code is written entirely in Java. Event handling is the means by which user interactions are captured by a program, for example, a user makes a selection from a list of available items.
Databáze: OpenAIRE