:: JGOODIES :: Swing Suite

:: Eclipse Setup ::

Find below step-by-step instructions for creating an Skeleton Pro project in Eclipse.

1. Create a Classpath Variable

Create a classpath variable SWING_SUITE_HOME that points to the home directory of the extracted Swing Suite. Open Window->Preferences->Java->Build Path->Classpath Variables.

2. Create a Project

Open File->New->Project. In the New Project wizard choose "Java Project" to create a project named Skeleton Pro. We will configure the path to the sources in step 4.

3. Import Sources and Resources

Select the project and choose Import... in the popup menu, or in the File menu. Import from the Swing Suite's skeleton-pro-x.x.x-src directory, and select the main directory. To run the application, you don't need the Photoshop design time resources. And you don't need to import the license, ANT script and other files shown in the following screenshot:

4. Configure the Java Build Path Source Folders

Select the project and choose Properties in the popup menu to open the project properties dialog. Select Java Build Path and click the Source tab. Remove the /src folder, if it is listed as source folder on the build path. Then add the /src/main folder. The result should look like this:

5. Configure the Java Build Path Libraries

In the project properties dialog, select the Libraries tab. Now add the required libraries as listed in the application's README.html. In this case: Binding, Forms, Looks, UIF, UIF Extras. Click Add Variable... to add libraries using the SWING_SUITE_HOME classpath variable that you have created in step 1. The result shall look like this:

6. Attach Sources to the Required Libraries

I recommend to attach sources to the libraries you refer to. This enables you to see the sources if you open a library class, or during debugging. In the Libraries tab of the project properties, expand the tree node for a library, select Source attachment and click Edit... to point to the sources.

The Swing Suite 1.9.x ships library sources in the source tree folder /src/core. The following screenshot shows the source attachment for the JGoodies Binding:

7. Check the Compiler Settings

Open the project properties dialog's Java Compiler tab. Check and verify that the compiler compliance level is consistent with the Java system library version. If you work with Java 5, use the Java System Library version 5.0 and a compiler compliance level of 5.0. If you work with Java 6, use the Java System Library version 6.0 and a compiler compliance level of 6.

In the Java build path screenshots shown above, we've used the JRE System Library [jre1.5.0_12]. The following screenshot shows that the Compiler compliance level is 5.0, which is consistent with the system library version

Prepared Eclipse Project

This folder contains a pre-configured Eclipse project for Skeleton Pro 1.9.6 including sources and resources in the Zip archive skeleton-pro-1.9.6-eclipse-project.zip. You can use this project as-is. And you can copy the file .classpath to other projects before you import the sources and resources.