標準部件工具箱

標準部件工具箱（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