AWT and Swing abbreviated

[Abstract Window Toolkit AWT, is a tool to create a graphical user interface provided by Java, it can be used to generate a modern, mouse-controlled graphical interface to applications, and without modification, can be run on a variety of hardware and software platforms. Swing [swing] and new technologies in the Java language is written in terms of the graphical user interface, Swing uses model - View - Controller design paradigm, Swing can make Java programs run can have a different look on the same platform for the user to select the time. Comparison]:
  . 1) AWT is based on C / C ++ program on the local process, which runs faster; is based on the Swing AWT Java program that runs slower.
  2) AWT controls may behave differently on different platforms, Swing and consistent performance across all platforms. Because AWT rely on the local method to achieve functionality (graphics functions and graphics functions provided by the operating system AWT has a one to one relationship. In other words, when we use AWT member graphical user interface, is in fact using the operation system's graphics library.), AWT controls so called "heavyweight controls", do not use Swing local method (Swing is a pure Java code to implement, so common Swing controls in the platform), it is called Swing control " lightweight controls "

Guess you like

Origin www.cnblogs.com/yangrongkuan/p/12024872.html