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.