awt:
Contains all of the classes for creating user interfaces and for painting graphics and images. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. The Component class is the root of all AWT components. See Component for a detailed description of properties that all AWT components share. swing:
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Contains all of the classes for creating user interfaces and for painting graphics and images. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. The Component class is the root of all AWT components. See Component for a detailed description of properties that all AWT components share. swing:
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
不过用的时候最好一起引入
还有swing的都是JBUTTON带个J
awt没有,
对了对于JDK1。0以前使用awt的
以后就有了swing
现在都是二个一起引入。