kevin Abel wrote:I found some others asking about "thread safe" in Code Ranch. It has something to do with multiple threads accessing the same classes.
Nope. It has everything to do with how multiple threads access the same
resources. The shared resource may be a class or a component of a class. If the access to that resource is controlled (via Java synchronization), then it's (probably) thread-safe.
AWT does have some utility still, I think, but it's dead last when considered for use as a desktop GUI. It's slower and less efficient than
Swing, uglier, and less able to integrate well into the machine's underlying windowing/GUI system.
The reason why I hesitate to pronounce AWT as dead is I'm fairly sure that there are parts of Swing that do build on AWT.
And, incidentally, there are alternatives to both, despite the fact that AWT and Swing are part of the core JRE (at least before Oracle started partitioning it). The Eclipse
IDE was built on a third-party GUI framework called SWT and it's not the only major GUI product to be developed so.