my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes Swing Vs AWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing Vs AWT" Watch "Swing Vs AWT" New topic

Swing Vs AWT

Faqat Sawali

Joined: Nov 12, 2000
Posts: 2
How far is it true that Swing is an alternative to AWT? If so then whats the need to learn AWT at all!
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have heard that Sun is encouraging the use of Swing in new development. I know that I prefer it, personally.
Grant Crofton
Ranch Hand

Joined: Nov 08, 2000
Posts: 154
I think the only reason you'd learn AWT now is because older browsers might not support Swing.
Is that right? Or do the VM's in browsers get automatically updated?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Swing is built on AWT. Many of the Swing objects such as JFrame are extensions of AWT objects. Plus Swing uses the AWT event model. You should really learn AWT first.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Sameer Rao

Joined: Oct 12, 2000
Posts: 20
hi Faqat,

I agree with Thomas. The Event model in Swing uses AWT. Also
web application use applets which are easy to design and implement in AWT. (Swing based Web application require a component called HTMLConverter or Swing JRE on the client machine.

Learning AWT especially, the event model, it important for understanding Swing. Swing provides tremendous improvement over AWT as far as UI components like Table, TextArea, Tree, SplitPane, InternalFrame are considered.

I would for sure spend sometime understanding AWT before concentrating over Swing.


I agree. Here's the link:
subject: Swing Vs AWT
It's not a secret anymore!