Hi Guys,
I am using a combobox in an
applet. The problem I am facing is that the value of combobox overwrites the old value, if I choose the new value from the drop down list of combobox. In other words, on choosing the new value, the new value overwrites on the old value and one can see a mix of old and new value. any idea, why is this happening ?
this is the list I am attaching to combobox
final
String[] modelID = {
"model1",
"model2",
"model3",
"model4"
};
this is the combobox declaration
JComboBox comboBox;
and this is the combobox initilization with the modelID as parameter
comboBox = new JComboBox(modelID);
I have already tried loading the combobox with the loop. but the result is the same. need your help.. Thnx in advance.