Abstract Windowing Toolkit is an integral part of the Java programming language class library. The AWT is both powerful and flexible. The creation of a graphical user interface using the AWT is relatively straightforward. The user interface is that part of a program that interacts with the user of the program. User interfaces range in complexity from simple command-line interfaces to the point-and-click graphical user interfaces provided by many modern applications.
The AWT has been designed so that programmers need not worry about the details of tracking the mouse or reading the keyboard, nor attend to the details of writing to the screen. The AWT provides a well-designed object-oriented interface to these low-level services and resources. Because the Java programming language is platform-independent, the AWT must also be platform-independent. The AWT was designed to provide a common set of tools for graphical user interface design that work on a variety of platforms.
The user interface elements provided by the AWT are implemented using each platform's native GUI toolkit. This helped the programmer to preserve the look and feel of each platform. This is one of the AWT's strongest points. The disadvantage of such an approach is the fact that a graphical user interface designed on one platform may look different when displayed on another platform. A graphical user interface is built of graphical elements called components.
Typical components include such items as buttons, scrollbars, and text fields. Components allow the user to interact with the program and provide the user with visual feedback about the state of the program. In the AWT, all user interface components are instances of class Component or one of its subtypes. The AWT is now part of the Java Foundation Classes JFC. which is the standard API for providing a GUI for a Java Program. The Abstract Window Toolkit (AWT) package enables the programmer to create GUIs in applets and applications. The AWT API communicates with the platform's native API's as to give the application the native look and feel. Because they associate with their own native screen resources, AWT components are called heavyweight components.
Java Development India offers AWT development, AWT consulting and AWT related solutions from our offshore software development outsourcing centre at Kochi, Kerala in India.
|