How to add JCalendar component to NetBeans IDE palette
How to add JCalendar component to NetBeans IDE palette
Who wants to implement a datepicker module in your application developed with NetBeans IDE, JCalendar is a Java date chooser bean for graphically picking a date. JCalendar is composed of several other Java beans, a JDayChooser, a JMonthChooser and a JYearChooser. You will need to download the jcalendar-1.4.zip from here http://toedter.com/jcalendar/ . Jcalendar-1.4.zip file contains all sources, libs and documentation .After downloading “jcalendar-1.4.zip” file, extract it using zip file manager application like winrar or 7zip .Go to exaction location and you can see lot files in it. Locate and open folder named “lib” and you can see the file named jcalendar-1.4.jar. Place jar file in your folder.
Next step is to include the JCalendar component in your NetBeans Palette. Default NetBeans IDE palette looks following screen shot.
From Tools menu select Palette > Swing/AWT Components or Right Click on palette and choose Palette Manger. This will open Palette Manger Window that provides a way to organize components in NetBeans palette.
I suggest to create a new category for your extra components. So click on New Category button in palette manager and create new palette category.
Now click on Add from JAR button and browse to jcalendar-1.4.jar file location. Clicking Next button the dialog box shows containing components of JCalenndar to choose from, that can be add to the palette.
Following dialog is a multi-selection dialog, so you can choose any component you need. Select what you need.
On clicking Next again you will be able to categorize the newly imported components. Select comfort category and press Finish button. After clicking Finish button close the palette manager window.
Now we have JCalendar Component pack in NetBeans palette.
You can easily drag and drop any of this Component to your workspace and use it. When you compile and build the code you will your application jar file along with a lib folder that contains supporting JCalendar file without which the application will not run.
.
Who wants to implement a datepicker module in your application developed with NetBeans IDE, JCalendar is a Java date chooser bean for graphically picking a date. JCalendar is composed of several other Java beans, a JDayChooser, a JMonthChooser and a JYearChooser. You will need to download the jcalendar-1.4.zip from here http://toedter.com/jcalendar/ . Jcalendar-1.4.zip file contains all sources, libs and documentation .After downloading “jcalendar-1.4.zip” file, extract it using zip file manager application like winrar or 7zip .Go to exaction location and you can see lot files in it. Locate and open folder named “lib” and you can see the file named jcalendar-1.4.jar. Place jar file in your folder.
Next step is to include the JCalendar component in your NetBeans Palette. Default NetBeans IDE palette looks following screen shot.
From Tools menu select Palette > Swing/AWT Components or Right Click on palette and choose Palette Manger. This will open Palette Manger Window that provides a way to organize components in NetBeans palette.
I suggest to create a new category for your extra components. So click on New Category button in palette manager and create new palette category.
Now click on Add from JAR button and browse to jcalendar-1.4.jar file location. Clicking Next button the dialog box shows containing components of JCalenndar to choose from, that can be add to the palette.
Following dialog is a multi-selection dialog, so you can choose any component you need. Select what you need.
On clicking Next again you will be able to categorize the newly imported components. Select comfort category and press Finish button. After clicking Finish button close the palette manager window.
Now we have JCalendar Component pack in NetBeans palette.
You can easily drag and drop any of this Component to your workspace and use it. When you compile and build the code you will your application jar file along with a lib folder that contains supporting JCalendar file without which the application will not run.
.
0 Comments