Basic tools for the graphical user interface of Java

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.