aspose file tools*
The moose likes Applets and the fly likes combobox value is not changing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "combobox value is not changing" Watch "combobox value is not changing" New topic
Author

combobox value is not changing

Paul Wagner
Greenhorn

Joined: Nov 13, 2009
Posts: 14
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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
Can you post an SSCCE that shows this behavior?


Ping & DNS - updated with new look and Ping home screen widget
Paul Wagner
Greenhorn

Joined: Nov 13, 2009
Posts: 14
Problem : The new value selected from drop down list of combobox overwrites the old value. One can see both old value and new selected value, with the new value overwriting the old one.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: combobox value is not changing
 
Similar Threads
two jcomboBox then
what does getModel do?
Jtable combo box issue
JComboBox in a JTable Cell
Custom CellRenderer