This is my infernal problem. nowadays i'm trying to create my project according to my Degree. I already have added jcalender to my project in netbeans, and i already added jDateChooser to my jFrame. my problem is, when i chooseing a date from jDateChooser how will display this date on a jLabel. i tried to using jLabel1.setText(jDateChooser1);
but in this case error will occur.
https://i.stack.imgur.com/FXeYO.jpg
Get jDateChooser date to jLabel
45.8k views Asked by majesticProgrammer At
5
First, you need to get the date from the component, something like...
Next you need to format that
Date
value to aString
Finally, you need to set that value as the text for the lable...
If you have particular formatting requirements, you may need to look at
SimpleDateFormat