This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT and swing

 
sheng zhong
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the difference of swt and swing?

When I edit a GUI java file, why there is a switch from swt to swing or swing to SWT?
 
Henry Wong
author
Marshal
Pie
Posts: 21119
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sheng zhong:
What's the difference of swt and swing?

When I edit a GUI java file, why there is a switch from swt to swing or swing to SWT?


Swing/AWT is the GUI toolkit that is packaged with Java. AWT being the lower level library, and Swing the library that sits ontop of it. SWT is a alternate toolkit created by IBM -- and later open-sourced.

Many people prefer to use SWT, as it provides access to the native GUI libraries, whereas Swing emulates widgets via AWT which provides simple access to the native GUI library.

Personally, I don't have a preference as I am not a heavy GUI developer.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic