Originally Posted by
javapenguin
Just as a thought, could you try the getItemCount() method in a println to check to see how many items are indeed in the ComboBox?
That way you could tell if only one item is being added or if there's more than one but somehow only one is showing up.
The original poster knows only one is being added, which was discussed above (and under what circumstances would a JComboBox have multiple items but only show one?)
Originally Posted by
ishiro
I just realised that if i delete this part:
I don't see anything obvious which would have the affect you are describing. Again though, I would recommend a) using a PreparedStatement b) if you have not yet, print out the query you are executing to be sure it is what you think it is c) create different ActionListeners per component to separate the behaviors