How to add SwingX palette in Window Builder?

I am using Windows Builder Pro in my Eclipse Helios. In NetBeans, I know how to add a SwingX palette. How to add SwingX palette in Windows Builder?

+4
source share
5 answers

I played with him, and I have a solution. SwingX is sent to 2 jars of swingx-all-1.6.3.jar and swingx-beaninfo-1.6.3.jar , the second contains BeanInfo classes. They are needed if you want to import them as java beans into any IDE. Therefore, you need to combine them into one library.

Here is what worked for me:

  • Create a directory called swingx .
  • Go to it and release swingx-all-1.6.3.jar . Make a backup copy of META-INF/MANIFEST.MF , say ../backup.mf .
  • Discard swingx-beaninfo-1.6.3.jar in the same place. His manifest will overwrite the previous one, so we had to make a backup.
  • Make sure you are in the same directory where you extracted the jars, and create a new jar that combines both of these functions using the following command line: jar -cvfm swingx-combined.jar ../backup.mf *

This will create a new jar that has both a manifest (which lists all java beans in the jar) and the required BeanInfo classes.

Import this jar into WindowBuilder, and you can add the required SwingX beans from it.

+2
source

If you right-click on an entry in the palette, you can open the Palette Manager, then "Add Category" and "Add Entry" or "Import Jar".

In addition, if you simply add any component that you want (e.g. JXTable) using Custom, it is automatically displayed in the user category in your palette.

+5
source

The clean solution is to simply add both swingx-all-1.6.4.jar and swingx-beaninfo-1.6.4.jar to your build path.

Then, in the palette manager, import swingx-all-1.6.4.jar, selecting all the elements.

+3
source

I could not add to the palette. But, if you add the component to the source code, it will appear in the preview. Then you can drag it as if you got it from the palette.

Hope this helps. Helped me...

+1
source

First of all, download SwingX 1.6.4 All-sources and SwingX 1.6.4 BeanInfo - sources from https://java.net/projects/swingx/downloads?search_tag=swingx-all-1.6.4.jar+&commit=search then add these banks to elipse by going to project-> properties-> Add External JARs.

0
source

All Articles