I am trying to make a drop-down JComboBox with its options taken from a Vector. The problem is that when I add a new
String to the Vector, the JComboBox becomes empty rather than displaying the updated options.
I had the same problem with a JList, but for this I was able to substitute a DefaultListModel for a Vector and it worked fine. Unfortunately, this option does not seem to be available for a JComboBox.
Can anybody help???