This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Vs AWT

 
Faqat Sawali
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How far is it true that Swing is an alternative to AWT? If so then whats the need to learn AWT at all!
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sameer Rao
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

------------------
_SvR_
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic