Because this Java class uses SWT widgets, the Java
project where you import this class must include the SWT library in its Java
Build Path.
- Open the project properties and click the Libraries tab
on the Java Build Path page.
- Click Add Library and select Standard Widget
Toolkit (SWT).
After you import the sample and open it in the Java visual editor,
you can run the application by clicking .