SWT is a Java-based widget toolkit that is available as an open-source software. It offers a variety of features and tools for developers to create modern user interfaces.
The SWT software features a number of examples that can be fully downloaded from the eclipse download page. These examples are split into two categories - the org.eclipse.swt.examples package that runs individually and the org.eclipse.swt.examples.* packages that require eclipse plug-ins.
Downloading the examples is a simple process. Once you have accessed the eclipse download page, select the eclipse build that you are running - normally the latest stable build. You can then scroll down until you see "Example Plug-ins", where you can read instructions for installation and select the download for your chosen platform.
Upon installation, you will find that the source code for the examples is in the src.zip file, which is located in the appropriate subdirectory of eclipse/plugins/org.eclipse.sdk.examples.source_/src/. For instance, the standalone example source for the 3.1 version can be found in org.eclipse.sdk.examples.source_3.1.0/src/org.eclipse.swt.examples_3.1.0/swtexamplessrc.zip.
The SWT software also includes plug-in examples, which can be accessed by restarting eclipse and going to Window > Show View... > Other... and expanding the "SWT Examples" folder. Overall, SWT is an invaluable software for creation of responsive user interface in Java applications.
Version 3.2: N/A