So I've decided to use SwingX. For those of you that doesn't know about SwingX, please check their website, but as a resume I will simple say that are a collections of advanced Swing components and that some of them will become part of the default Swing set in JDK 7.
Let's start the party:
Download SwingX to you computer
You can do it from here: SwingX Download. Now I would recommend you to unpack it.
Add SwingX Library to NetBeans
- In NetBeans go to Tools -> Library Manager and click the "New Library..." button
- Type a name: SwingX
- Now in the ClassPath tab you need to add the jar files you will find the
/dist - (Optional) You can also add the SwingX sources and documentation (The SwingX 1.0 javadoc zip file is incomplete, but I used the "Hudson Continuous Build Javadoc" without problems)
Add SwingX to your Project
- Right click on your project and choose "Properties"
- Select the "Libraries" section in the left tree
- Now click in "Add Libraries..." in the right panel
- Select the Library you created in the previous step ("SwingX" if you followed my suggestion)
- Finally hit the "Add Library" button
Add SwingX Components to the Palette
- Create or open a GUI class form. You'll then see the Palette on the right side (by default)
- Right click on the Palette and choose "Palette Manager..."
- Click "New Category..." and choose a name. I would suggest to type SwingX again.
- Select the newly created category and choose "Add from Library..."
- Now choose all the components you want to have available (use Ctrl+A to select all)
- Finally choose again the "SwingX" category
- Click "Finish"
We're done. Now you can use the SwingX components in your NetBeans Projects.
Happy coding
Muchas, pero muchas Gracias!
ReplyDeleteI cannot explain how helpful this was!! :)..even SwingLabs tut was hard, this really helped alot!..thanks again man
ReplyDeleteJXDatePicker component says it cannot be instantiated once it is dragged into the GUI Builder. Any ideas why?
ReplyDeleteGreat help.... too good. Nice way to describe...
ReplyDeleteThis is a brilliant tip ! Everywhere else seems to have a million different things to do to get to the same point !
ReplyDeleteThis is concise !
how about? dragging while the project was Netbeans Platform Based.. says "it cannot be instantiated"
ReplyDeletethanks a lot..
ReplyDelete