Previous Page
Next Page

4.5. Summary

SWT is a well-designed native UI library for Java that is based on a long history of similar work done by IBM and OTI over the years. It is the native UI library of Eclipse itself and will be used extensively in any Eclipse plug-in that you create. SWT is also more than powerful enough to be used for creating standalone Java applications that don't require any of the other Eclipse frameworks.

SWT includes a rich collection of built-in widgets that are mapped to native-platform widgets whenever possible and are emulated when an appropriate widget is not present on a specific platform. SWT also includes a wide array of layout management classes ranging from the simple FillLayout to the more complex GridLayout and FormLayout. With these widgets and layout managers, you can create any user interface that you want to use for your plug-in.


Chapter source (

Northover, Steve, and Mike Wilson, SWT: The Standard Widget Toolkit. Addison-Wesley, Boston, 2004.

Harris, Robert, and Rob Warner, The Definitive Guide to SWT and JFACE. Apress, Berkeley, CA, 2004.

Holder, Stephen, Stephen Holder, Stanford Ng, and Laurent Mihalkovic, SWT/JFace in Action: GUI Design with Eclipse 3.0. Manning Publications, Greenwich, CT, 2004.

Cornu, Christophe, "A Small Cup of SWT," IBM OTI Labs, September 19, 2003 (

Winchester, Joe, "Taking a Look at SWT Images," IBM, September 10, 2003 (

Irvine, Veronika, "Drag and DropAdding Drag and Drop to an SWT Application," IBM, August 25, 2003 (

Arthorne, John, "Drag and Drop in the Eclipse UI," IBM, August 25, 2003 (

Bordeau, Eric, "Using Native Drag and Drop with GEF," IBM, August 25, 2003 (

Savarese, Daniel F., "Eclipse vs. Swing," JavaPro, December 2002 (

Majewski, Bo, "Using OpenGL with SWT," Cisco Systems, Inc., April 15, 2005 (

Kues, Lynne, and Knut Radloff, "Getting Your Feet Wet with the SWT StyledText Widget," OTI, July 19, 2004 (

Kues, Lynne, and Knut Radloff, "Into the Deep End of the SWT StyledText Widget," OTI, September 18, 2002 (

Li, Chengdong, "A Basic Image Viewer," University of Kentucky, March 15, 2004 (

MacLeod, Caroly, n and Shantha Ramachandran, "Understanding Layouts in SWT," OTI, May 2, 2002 (

Northover, Steve, "SWT: The Standard Widget ToolkitPART 1: Implementation Strategy for Java™ Natives," OTI, March 22, 2001 (

MacLeod, Carolyn, and Steve Northover, "SWT: The Standard Widget ToolkitPART 2: Managing Operating System Resources," OTI, November 27, 2001 (

Moody, James, and Carolyn MacLeod, "SWT Color Model," OTI, April 24, 2001 (

Irvine, Veronika, "ActiveX Support In SWT: How Do I Include an OLE Document or ActiveX Control in My Eclipse Plug-in?," OTI, March 22, 2001 (

Previous Page
Next Page