How to get month name in string on JMonthChooser
from JCalendar
(toedter.com/jcalendar/) and convert it to string "01", "02","03",...,"12" as simple as using SimpleDateFormat
.
I'll try :
String mymonth;
SimpleDateFormat sdfm = new SimpleDateFormat("MM");
JComboBox combom = (JComboBox)jMonthChooser1.getSpinner();
mymonth = sdfm.format(((JTextField)combom.getEditor()).getText());
But no success