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