• Post Reply Bookmark Topic Watch Topic
  • New Topic

To Swing or not to Swing

 
Tim Cao
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

I am developing a new applet, and still undecided whether to use Swing or just stick to the tried and trusted old AWT. I know the Swing interface gives a much more professional look to the applet, but at the same time, you will have to make sure the end users have the proper plugin installed. Does the benefit of having a professional look outwieght the troubles?

Thanks for your input,

Tim.
 
Joe Ess
Bartender
Posts: 9376
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Standard engineering answer: "That Depends". Swing has a lot of functionality which is not available in AWT (JTable is the big one). It is also more consistent across multiple platforms (for example, checkboxes are two state in Windows (true/false) and three state in Unix/Motif (true/false/unselected)). If you don't need the functionality and aren't concerned about (or can spend time debugging) multiple platforms, you may be able to use AWT. If you need a table, you may HAVE to use Swing. Keep in mind that the later JVM's have lots of features we take for granted like the Collections API, regular expressions and generics among others. If you want to use these features in your applet, you will need the plug-in.
[ March 22, 2005: Message edited by: Joe Ess ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!