Linked by Thom Holwerda on Tue 11th Apr 2006 17:43 UTC, submitted by Sekou DIAKITE

Permalink for comment 113940
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
Member since:
2006-04-11
Swing is an extension of AWT. AWT widgets are native widgets, somewhat like SWT. AWT, however, uses the lowest common widget scheme where if ALL supported platforms don't implement a certain widget, it isn't included in AWT. SWT implements any widgets not available.

Why is this relevant?
If you see an official widget class, like a text box, you know if it's an AWT or Swing widget by the class name.
TextField is AWT
JTextField is Swing
This way you don't have to resort to fully qualified class names in a Java class if you happen to use both types of widgets in the same class. It also makes things CLEARER.
Also, javax is a "proprietary" non-standard package (.NET's copy of this is called a "namespace") for Java classes.
The more you know.