Original http://blog.csdn.net/nkliming/article/details/7790288
I have always wanted to install SWT, but eclipse has always had problems. Later I heard that the interface written in Java is too ugly, so I have never installed it again. I have recently developed the Eclipse plug-in, so I have to install SWT again. Follow these steps to complete the installation:
1. Eclipse: Help-> install new software, there is an add option on the right, the interface is as follows:
Name can be left blank, and location input: Success:
Select the bottom two: SWT designer and windowbuilder... next and install. Then restart the instance.
2. there is information on the Internet that you want to download Org. eclipse. SWT. win32.win32. x86_3.6.0.v3650b.jar. Copy a jar package like this to the Plugins directory and import it to the newly created SWT project for visual programming. Later, I found a jar package named org. Eclipse. SWT. win32.win32. x86_3.6.2.v3659c.jar In the Plugins directory. Therefore, I don't think this step is necessary.
3. Test. Create a SWT Project File> New> Other> New SWT/jface Java project, and enter the project name firstswt.
Right-click SRC and choose "New"> "other"> "SWT"> "application window" and "Next". Enter "testswt" and "finish". The page is displayed.
Run the test with some controls.