With the visual editor for Java, you can use a look and feel other
than those provided by Swing.
If you develop your own look and feel, or acquire a commercial
or free look and feel, you can add the look and feel to the visual editor.
To
add a new Swing look and feel:
- Add the JAR file with your look and feel to the Java Build Path.
- Download or create a new look and feel and save to a local directory.
- Unzip to the Project directory where you want to include the
new Look and Feel.
- In the Project Explorer, right-click the project name.
- Click .
- Click Add External Jars and browse to
the JAR file that contains the look and feel, then click OK.
Now, you are ready to apply the new Look and Feel to your application.
- Add the look and feel to the visual editor preferences:
- Open the Preferences window by clicking , and select .
- Next to the Swing Look and Feel table
on the Appearance tab, click New.
- Provide a Name and the Class for
the new look and feel. The LookAndFeel class name should be in the documentation
for the look and feel. If you cannot locate the look and feel class name,
you can find the class name by right-clicking the JAR file that you added
to your project, and pressing F4 to open its hierarchy.
- Click OK to close the Look and Feel dialog.
- Select the check box next to the new look and feel.
- Click OK to save your preferences.
- Close your application, then open it again to see the new Look
and Feel.