Eclipse – Standard Widget Toolkit (SWT) – Installation

SWT, the Standard Widget Toolkit, will help us to draw windows for the Java platform.

On this webpage you will find links to download last stable releases http://www.eclipse.org/swt/

Once downloaded, open Eclipse, right click on the Explorer tab, then : Import… > General >Existing Projects into Workspace.
Click Next then select the Select archive file option and browse until, for example for Windows OS, your  swt-3.7.1-win32-win32-x86.zip file.

Click Finish.

Now in your Package Explorer you can see the org.eclipse.swt project.

Right click in this Explorer to create a new Java project named for example project1.

Right click on project1 > Build Path > Configure Build Path > Java Build Path.
On the right there are several tabs.
Select Projects and click Add…
Select org.eclipse.swt and click OK.

You project project1 is now linked with SWT and you can use its classes.

laugh

Leave a Reply to assist you..

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s