Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

good reasons to Swing over SWT  RSS feed

 
Robby Robson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any think any advantages Swing would have over SWT


I guess in theory it would be more portable

I'm tring to figure out if I want to not bother with Swing
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, this could be an interesting debate which if you search Google you will see this blogged about over and over again. I even said a little spill on my weblog about it.

The fact of the matter is, Swing is out there and going pretty strong right now. Just look at the 21 pages of Swing Sightings. So some specific advantages imo would be:
* Support - I would bet there are more Swing users than SWT users which means more support from the community. Just look at the SWT to Swing threads in this forum.
* Comes with JRE - Swing ships with the JRE so no additional libraries to download.
* Sun Standard - Whatever that means, but it seems to be said a lot, especially with JSF now days. So I guess it means something to some people.
* Extendability - Swing is easier to extend and make do whatever you want in my opinion.
* Documentation - Search amazon for books on Swing then search for books on SWT.


Of course, I could come up with just as many reasons to choose SWT over Swing. What you need to do is program a bit with both. See what feels better to you. Why are you choosing one in the first place? Are you getting ready to start a project and you need to pick a GUI API? Project requirements can help make a decision for you as well. Is the client real particular about Native L&F? Does the client want a very customized interface?

Anyway, those are my thoughts on the subject. I'll be interested to see how this thread goes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!