I think is a very simple question, I ve got a JComBox with an array of Strings. Something like this:
JPanel myPanel;
JComBox box;
String levels[]={"Level 1","Level 2","Level 3","Level 4","Level 5"};
box = new JComboBox (levels);
myPanel.add(box);
Ok. My question is: How can I let just the level 1 enable at first, or how can I enable or disable just one level of the JCombox, like level 1 and 2 enable but level 3, 4 and 5 disable.
Thanks a lot!! Hope someone helps me!!

[ March 26, 2008: Message edited by: Bernardo Costa ]