The following steps are from here:
Adding SwingX library to NetBeans:
- Open NetBeans, go to menu Tools > Library Manager and click "New
Library...";
- Type a name (could be "SwingX") and click Ok;
- Select the Library that you created and, in the Classpath box (on the right), click "Add JAR/Folder...";
- Then go to the folder where you downloaded swingx.jar file, select it and click "Add JAR/Folder" in this window.
Now the SwingX components are already available to you use in NetBeans. But, to use them in a project, do the following steps:
Adding SwingX library to the Project Libraries:
- Right click on your project that you want to use the SwingX
components and select Properties;
- Select "Libraries" in the left box;
- Click "Add Library..." and select the library that you created in Adding SwingX library to NetBeans ("SwingX", as I suggested);
- Click "Add Library" and then Ok.
Now your project can use the SwingX components, but we already need to set the NetBeans's Palette to show the SwingX components.
Adding the SwingX components to the NetBeans's Palette:
- Create (or open) a Java GUI Class Form. The Palette will appear;
- Right click on the palette and select "Palette Manager...";
- Click "New Category...", type a name (could be "SwingX" again) and click Ok;
- Select the category that you created in the box and click "Add from Library...";
- Select the library that you created in Add SwingX library to NetBeans ("SwingX", as I suggested) and click "Next >";
- On the next screen, click in the box and type Ctrl+A (to select all items) and click "Next >" again;
- Finally select the category that you created on the third step of this topic ("SwingX", as I suggested);
- Click Finish and then Close.