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
Joined: Nov 22, 2008
Posts: 18944
posted
0
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
posted
0
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
posted
0
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.
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.