标准部件工具箱

标准部件工具箱（Standard Widget Toolkit，缩写SWT）是最初由IBM开发的一套用于Java的图形用户界面系统，用来与Swing竞争。
开源整合开发环境Eclipse就是用Java和SWT开发的。

**设计**

**编程**
在GTK+环境下使用SWT的简单GUI应用程式
下列为基本使用SWT的Hello World程式。显示出一个视窗(Shell)及一个标签。
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
public class HelloWorld 
{
public static void main (String args) 
{
Display display = new Display();
Shell shell = new Shell(display);
Label label = new Label(shell, SWT.NONE);
label.setText("Hello World");
label.pack();
shell.pack();
shell.open();
while (!shell.isDisposed()) 
{
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}

**参见**
List of widget toolkits
*JFace

**参考资料**
 Cite book | first1 =  Steve | last1 =  Northover | first2 =  Mike | last2 =  Wilson | title =  SWT: The Standard Widget Toolkit, Volume 1 | publisher =  Addison-Wesley | page =  592 | date =  July 8, 2004 | isbn =  0-321-25663-8 | url =  http://www.informit.com/store/product.aspx?isbn=0321256638 | access-date =  2012-07-10 | archive-date =  2008-12-22 | archive-url =  https://web.archive.org/web/20081222055929/http://www.informit.com/store/product.aspx?isbn=0321256638 | dead-url =  no - Cite book | first1 = Rob | last1 = Warner | first2 = Robert L. | last2 = Harris | title = The definitive guide to SWT and JFace | publisher = Apress | date = June 21, 2004 | page = 684 | isbn = 1-59059-325-1 | url = http://www.apress.com/book/view/1590593251 | deadurl = yes | archiveurl = https://web.archive.org/web/20101205203127/http://apress.com/book/view/1590593251 | archivedate = 2010年12月5日 | access-date = 2012年7月10日 - Cite book | first1=Eric | last1=Clayberg | first2=Dan | last2=Rubel | title=Eclipse: Building commercial-quality plug-in | publisher=Addison-Wesley Professional | date=April 1, 2006 | edition=2nd | page=864 | isbn=0-321-42672-X | url=http://www.informit.com/store/product.aspx?isbn=032142672X | access-date=2012-07-10 | archive-date=2012-01-14 | archive-url=https://web.archive.org/web/20120114215729/http://www.informit.com/store/product.aspx?isbn=032142672X | dead-url=no - Cite book | first1 = Erich | last1 = Gamma | first2 = Kent | last2 = Beck | title = Contributing to Eclipse | publisher = Addison-Wesley | date = October 30, 2003 | page = 416 | isbn = 0-321-20575-8 | url = http://www.informit.com/store/product.aspx?isbn=0321205758 | access-date = 2012-07-10 | archive-date = 2008-12-22 | archive-url = https://web.archive.org/web/20081222055914/http://www.informit.com/store/product.aspx?isbn=0321205758 | dead-url = no - Cite book | first1 = Jim | last1 = D'Anjou | first2 = Scott | last2 = Fairbrother | first3 = Dan | last3 = Kehn | first4 = Pat | last4 = McCarthy | first5 = John | last5 = Kellerman | title = The Java Developers Guide to Eclipse | publisher = Addison-Wesley | date = November 5, 2004 | edition = 2nd | page = 1136 | isbn = 0-321-30502-7 | url = http://www.jdg2e.com/ | access-date = 2012-07-10 | archive-date = 2012-04-19 | archive-url = https://web.archive.org/web/20120419012957/http://www.jdg2e.com/ | dead-url = no - Cite book | author = Matthew Scarpino, Stephen Holder, Stanford Ng and Laurent Mihalkovic | title = SWT/JFace in Action | publisher = Manning | date = November 28, 2004 | isbn  = 1-932394-27-3 | page =  496 | url =  

**外部连结**
  SWT main pagedate=20080426084518 -  SWT newsgroupfix-attempted=yes （这个新闻群组被密码所保护；密码申请由 这）-  Eclipse applications-  Eclipse applications, part 2-  Further information on SWT-  Information on Eclipse，including SWT information within a "platform plug-in developer guide"-  SWT Javadoc APIdate=20070811054456  documented at eclipse.org