Java Learning---9.GUI programming

Source: Internet
Author: User

1.awt:component: Buttons, icons, etc. that can be displayed

window can be displayed independently, the panel can accommodate other elements, but it cannot be displayed as a separate window for the application.

Applets are not used

The basic difference between AWT and swing: AWT is a local method-based C/s + + program that runs faster, and swing is an AWT-based Java program that runs slower. For an embedded
Applications, the hardware resources of the target platform are often very limited, and the running speed of the application is an important factor in the project. In this contradictory situation, the simple and efficient AWT is of course an embedded
The first choice for Java. In standard Java applications based on PCs or workstations, the limitations of hardware resources on applications are often not a key factor in the project, so in the standard version of Java




Swing is a newly developed package to solve the problem of AWT, which is based on AWT.
2. Layout Manager:
Frame comes with a layout manager that can automatically arrange the layout of each of its elements. Self-adapting


Java Learning---9.GUI programming

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.