|
R4R provide basic AWT Tutorials concept with
AWT Examples .
Through R4R you can develop AWT programming concept. R4R provide
AWT Interview Questions with answers.R4R provide AWT Languages study materials in easy way.
AWT Examples
2.1 AWT Basic Example
(new)
2.2 AWT Example
Abstract Window Toolkit( AWT)
Abstract Window Toolkit release with java in 1995 by Sun
Microsystems, provided a thin level of abstraction over the underlying native
user interface. Main purpose of AWT is to support the Graphical user
Interface( GUI) in programming. It is the part of the Java Foundation Classes
(JFC) — " the standard Application Programming Interface (API) for providing a graphical user interface (GUI) for a
Java program". It's all the class must extend the AWT Packages, which are
of two types-
-
java.awt package -
Contains all of the classes for creating user interfaces and for painting
graphics and images.
-
java.awt.event
package - Provides interfaces and classes for dealing with different types
of events fired by AWT components.
AWT features include:
-
It is a robust event-handling model.
-
Support the graphics and imaging tools, including shape,
color, and font classes
-
Support the native user interface components in program.
-
The Swing classes are built on top of the AWT architecture.
-
Also support to data transfer classes, in cut-and-paste form
through the native platform/ clipboard.
-
Define a layout managers, for flexible window layouts that
do not depend on a particular window size or screen resolution ( i.e.
totally independent from platform).
Architecture of AWT.
Since, AWT is the heavy weight component, but provide a general interface
between Java and the native system, used for windowing, layout managers,
and events. The AWT provides two levels of APIs:
|
|
|