https://www.eclipse.org/windowbuilder/
https://www.eclipse.org/windowbuilder/download.php
Installing WindowBuilder Pro
All downloads are provided under the terms and conditions of the Eclipse Foundation Software User Agreementunless otherwise specified.
Develop Java graphical user interfaces in minutes for Swing, SWT, RCP and XWT with WindowBuilder Pro’s WYSIWYG, drag-and-drop interface. Use wizards, editors and intelligent layout assist to automatically generate clean Java code, with the visual design and source always in sync.
These instructions assume that you have already installed some flavor of Eclipse. If you have not, Eclipse can be downloaded from http://www.eclipse.org/downloads/. Instructions and system requirements for installing WindowBuilder can be found here.
Update Sites
| Eclipse Version | Release Version | Integration Version | ||
|---|---|---|---|---|
| Update Site | Zipped Update Site | Update Site | Zipped Update Site | |
| 4.8 (Photon) | link | |||
| 4.7 (Oxygen) | link | |||
| 4.6 (Neon) | link | link | ||
| 4.5 (Mars) | link | link (MD5 Hash) | link | link (MD5 Hash) |
| 4.4 (Luna) | link | link (MD5 Hash) | link | link (MD5 Hash) |
| 4.3 (Kepler) | link | link (MD5 Hash) | ||
| 4.2 (Juno) | link | link (MD5 Hash) | ||
| 3.8 (Juno) | link | link (MD5 Hash) | ||
Installing the Update Site or Zip editions requires the full Eclipse SDK including the JDT and PDE. Use the Eclipse Classic, Java EE or RCP/Plug-in Developers distribution or install the JDT and PDE separately.
-------------------------------------------------------------------------------------------------------
最近想用java做個小應用,是那種可視化圖形類的應用。因為一直比較懶,所以打算用swt拖拖拽拽。於是在就去找swt,這是以前的辦法。結果發現原來最新版的eclipse自己帶有一個windowbuilder插件,而此插件就是swt,於是很開心的使用此工具。但有部分周圍的人還在使用以前版本的eclipse,特在此將eclipse安裝插件的方法告知。
首先,打開你現在使用的eclipse,在eclipse的help菜單中找到一個叫About Eclipse的菜單項,然后點擊它,此時彈出一個窗口。注意看Version后面的內容。

如上圖所示,4.5.2就是版本號,版本名字叫mars, Release是發布版。
其次,我們要去eclipse官網找window builder與之對應的版本。打開瀏覽器,在地址欄里輸入下面的這個網址:http://www.eclipse.org/windowbuilder,回車之后,就看到如下界面:

點擊 download 進入下載界面,然后在中間看到如下圖所示內容。

上圖已經標明意思,我要看的是4.5(Mars)這行,因為我電腦上使用的eclipse是4.5,因此,我就選用這個對應版本,選擇Release Version的Update Site中的link。(后面的是zip包。)
點擊link后,我們看到的是一個下載頁面,頁面正文可能空白,我需要的是上面的網址。所以選擇網址復制它。

再次,打開我電腦上的eclipse,點擊Help菜單,選擇Install New Software...這個菜單項。

彈出一個新窗口,在這個窗口中點擊add這個按鈕。

接着,彈出一個Add Repository窗口。

Name這兒的名字自己可以隨意取名,Location這里將上面的那個網址粘貼到這里。然后你就會看到ok按鈕可以點擊,點擊它。

此時,稍等一些會,就會看到上圖的三個選項。選中它們三個(前面勾選),然后點擊next按鈕,此時是自己的網速來決定等待時間。在線現在這三個插件。因此需要等待。

當此頁面出現,說明插件下載完成。點擊next,准備安裝插件。
上圖,是問你是否同意該軟件的使用條款和須知,當然我選我同意也就是I accept the terms of the .....這一項,然后點擊next。此時需要等待,這是安裝正在自動安裝插件。
最后,等待安裝完畢。點擊ok,eclipse會自動重啟。在重啟之后,你可以在About Eclipse菜單項點開后,看到這個圖標

或是在File菜單下的new菜單項中的other...菜單項打開,看到如下圖所示

上圖顯示插件安裝完成。可以使用了。
說明:
①、使用swt插件開發,首先要建立一個java工程
②、選中工程,然后在new菜單選擇other 菜單項 找到上圖中的JFrame

點擊 Design
等待加載圖形,然后可以雙擊上面的文件標題欄最大化。

至此,你就可以開發想要的java小應用。
