• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi just tell me
what is advantage of swing over awt?
 
paul wheaton
Trailboss
Posts: 22553
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you write an AWT app and get it looking good on one platform, it usually looks goofy on another platform. This is becuase the AWT uses the built in system components. So a drop down box on Windows will look and work differently than one on Solaris or on a Mac. Normally, these little differences are pretty small - but sometimes that can be huge.
Swing relies only on the canvas component. An area to draw stuff on. Then Swing draws its own buttons and drop down boxes and stuff. They always look and act the same on all platforms. Much better. Plus, since the Swing stuff was developed later, it is generally more robust and higher quality.
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing has alot of very useful GUI widgets. AWT is very limited in its use of GUI widgets because its restricted to the platform its running on.
In short using Swing you are sure to be able to develop very nice professional looking GUI applications. Applications using the AWT soley look primitive because of AWT's lack of sophistocated GUI controls. I personally like the Java look and feel which Swing provides over any of the native GUI's I've used. Swing adds alot of visual appeal and it provides alot of control when trying to develop an application.
Anyway I am a Swing fanatic!!! I love it!!!
Have fun,
Frank
 
Sanjeev
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like swing too, I also hate it equally for its loading issues
perticularly when downloaded as an INTRANET applet. If you want
to deploy swing as an INTERNET applet, forget about. Also, dont
think of plugins, not every one would like to use plugins just
to run your app.
I like building my own stuff using AWT ...
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah I can understand speed in an intranet application. Swing is a very large feature rich library. It has its good and bad points. I still think that its good far out weighs its bad.
I also like custom AWT components. There is just so many things you can do with java's lightweight components. At the moment I am writing an application using a lightweight component I downloaded off the net, it gives you a nice interface which looks very similar to Microsoft Outlook. Its a very nice enhancement to my application which is built around a Swing UI.
Frank
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Transparency can be added to some swing components but awt components are always opaque and are called heavyweight.
 
Manoj Kumar Konakalla
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i too agree with you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!