• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT and swing  RSS feed

 
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?
 
author
Sheriff
Posts: 23329
125
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
 
I am Arthur, King of the Britons. And this is a tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!