dagblog.
← Archive

Swing versus SWT


Tomáš Kouba takes a look at Java technologies for building
 GUIs, comparing
 Swing with SWT.
 He lists SWT's advantages but ultimately recommends Swing. I'd take issue
 with that conclusion. Swing's integration into Java 2 is the only advantage I see. For speed
 and appearance, SWT wins hands down. Its components actually look like
 the operating system's own controls, and they avoid the glitches you see in Swing, such as flickering.

SWT's drawback is obvious. It needs the operating system's native libraries. That seems
 preferable to trying to build a universal solution. GUIs are so platform-specific
 that I'm willing to accept those dependencies for better speed and appearance. Eclipse is a case in point.
 As for GUI designers, I've seen only one usable option for Swing,
 the one that comes with JBuilder. SWT has an equivalent in
 the V4All plug-in for Eclipse.

Medium version

Related articles

Related CZ Podcast episodes