Brothers and sisters, How to create input form with JCalendar in java like the picture below??: already know???. hmm.. and to you dont ...
Brothers and sisters, How to create input form with JCalendar in java like the picture below??:
already know???. hmm.. and to you dont know yet I show you how to create it? :
First :
download jCalendar.jar if you don't have it because you will use it.
Second :
upload on pallete on netbeans, and those the ways
#1. After you open the Netbeans choose Tools --> Pallette --> Swings/ AWTComponents
#2.Than click New category
#3. Type on New Category Name with jCalendar
#4. Click OK, and continue with pressing Add from JAR
#5 .Chosse jcalendar.jar file located on folder lib at file jCalendar that you have downloaded it
(after exctracted)
#6. Click Next then select all Components of calendar (Cntr A), and Next again
#7 .Choose jCalendar for Pallette category and Finish
Done............
and now how to use it? ... Came on follow me again
Third :
Create a new project : by Click File--> New project --> Java--> Java Desktop Application then give the project name as you will (eg. Calendar)
Forth :
on CalendarView.java chose Desain, just drag the component easily () to jFrame or other, eg. you create a form like below
Fifth : to get value from date you have choose, right click on bSubmit component or OK button, then Events → Action → actionPerformed
Modify the method of bSubmitActionPerformed until you see like below
The Last : just run it, Done.., and see what you see?...
already know???. hmm.. and to you dont know yet I show you how to create it? :
First :
download jCalendar.jar if you don't have it because you will use it.
Second :
upload on pallete on netbeans, and those the ways
#1. After you open the Netbeans choose Tools --> Pallette --> Swings/ AWTComponents
#2.Than click New category
#3. Type on New Category Name with jCalendar
#4. Click OK, and continue with pressing Add from JAR
#5 .Chosse jcalendar.jar file located on folder lib at file jCalendar that you have downloaded it
(after exctracted)
#6. Click Next then select all Components of calendar (Cntr A), and Next again
#7 .Choose jCalendar for Pallette category and Finish
Done............
and now how to use it? ... Came on follow me again
Third :
Create a new project : by Click File--> New project --> Java--> Java Desktop Application then give the project name as you will (eg. Calendar)
Forth :
on CalendarView.java chose Desain, just drag the component easily () to jFrame or other, eg. you create a form like below
ket: variable name for jCalendar on form is jCalendar1 bSubmit → Submit button,to get the value from date choosen outputField → textfield to show the result of date you choose |
Fifth : to get value from date you have choose, right click on bSubmit component or OK button, then Events → Action → actionPerformed
Modify the method of bSubmitActionPerformed until you see like below
The Last : just run it, Done.., and see what you see?...
OK Try it :-)