Hi
After a few days without an entry in my blog I decided to do one on swing in this case there is an api call to swinglabs swingx.
Step 1. Create a project in netbeans with the name they like best (eg MiPrimeraAplicacion, just kidding).
Step 2. jar swingx Download this place http://swinglabs.org/ hope it works because most of the server is down, but can find it on google. Step 3
. Adding components to the ballot swingx netbeans:
After downloading the swingx jars, the jars we need are the following:
- swingx-BeanInfo-1.6.jar
-
In swingx-1.6.jar the toolbar of Netbeans we go to the Tools / Palette / Swing and AWT Componets, as shown in the picture below.
Open a window called Palette Manager administrator is responsible for the Palette, in this we click the New button Category and create a new category called swingx.
After clicking Ok to create a foldercito us with the name of our category called swingx, to add our components swingx we select our category and click the Add button from Jar A window display Palette title to Install Components in this window select where are our two jars swingx-BeanInfo-1.6.jar and swingx-1.6.jar.
Dar
next and display a panel where we have to choose the components that were added to the palette, choose the radio button option Show Marked Java Beans
again next will appear from one another panel we will select the category you created earlier called swingx.
Finally we click on Finish button
We next and display a panel where we will put you name to our JPanelForm for this example will call the JPanelGrid class.
After we create the kind JPanelGrid double clicking on it and we will open the panel in design mode, also has a button to see the source code on the right side is the palette with our swingx call category, this is our JXTable that deal for this example, to put it on our panel we just have to drag and drop the component in our panel.
At this point you have a grid Agragar swingx but data is needed and also create your main, that would be part 2.
Dedicated to my little princess.