ram an wrote:hey thanks fr all..i got it working...
Hey, I've got a similar problem, can someone please help.
I need to create two combo boxes one for month and other for year.
The month cpmbo box (drop down) lists the 12 months but needs to display the current month as default and similarly year combo box lists from current year to 2004, defaulting to current year.
I've got two problems here:
1) to get default the month and year values displayed in the respective combo boxes
2) to get the drop down list starting from current year to 2004 displayed in the year combo box
I have coded the the list values as:
ArrayList Month = new ArrayList();
Month.add(new LabelValueBean("Jan", "01")); ---- the value '01' is written to DB
Month.add(new LabelValueBean("Feb", "02"));
Month.add(new LabelValueBean("Mar", "03"));
Month.add(new LabelValueBean("Apr", "04"));
Month.add(new LabelValueBean("May", "05"));
.
.
.
Month.add(new LabelValueBean("Dec", "12"));
ta,
Divi