The One
02-26-2006, 06:38 AM
i got this drop down menu made:
[code]
final JComboBox yearChoice = new JComboBox();
int months = 1950;
for (int i=0;i<months;i++);
yearChoice.addItem(months +1);
yearChoice.setSelectedItem(months);
...
How do i make it so that it creates an array of the years from 1950 t0 2000??? right now it is just adding 1950 to the drop down menu HELP?
[code]
final JComboBox yearChoice = new JComboBox();
int months = 1950;
for (int i=0;i<months;i++);
yearChoice.addItem(months +1);
yearChoice.setSelectedItem(months);
...
How do i make it so that it creates an array of the years from 1950 t0 2000??? right now it is just adding 1950 to the drop down menu HELP?