|
Native widgets are called peers. A java AWT component needs a peer to be shown on the screen. Lightweight, Swing (J prefix) components do not. However they must be shown in a top–level container (JApplet, JFrame, JWindow, etc) which does need a peer or native widget.
The AWT is the original abstract windowing tookit. The Swing set came out in j2se 1.2
You can find a lot of AWT code on the web, old applets and the like. Also, I think the mobile phone people use AWT. Swing is easier to use, has more options and is most common in use by developers. It is best not to mix the two. You can but there are some gotchas to be aware of.
|