AWT (Abstract window Toolkit), the Chinese translation of the Abstraction Windows Toolkit, which provides an interface for interacting with the local graphical interface, is the basic tool provided by Java for creating and setting up a graphical user interface for Java.
The graphical functions in AWT have a one by one correspondence with the graphical functions provided by the operating system, called peers, and when writing graphical user interfaces using AWT, they are actually taking advantage of the graphics library provided by the local operating system.
Because the styles and functions provided by the graphics libraries of different operating systems are not the same, the functionality that exists on one platform may not exist on the other.
To implement the concept of "write once, run anywhere" in the Java language, AWT had to sacrifice functionality to achieve platform independence, or AWT provided graphical functionality that was the intersection of the graphics capabilities provided by various operating systems.
1 Package com.myswing;2 3 Public classfifteenswing {4 5 /**6 * Default parameters for output console delivery7 */8 9 Public Static voidMain (string[] args) {Ten OneSystem. out. println (args); A } -}
Basic tools for the graphical user interface of Java