SWT Simple Text Editor sample setup

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.

  1. Open the project properties and click the Libraries tab on the Java Build Path page.
  2. 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 Run > Run as > Java Bean.
Parent topic: SWT Simple Text Editor sample

Feedback