Custom Model For JComboBox
843806Mar 29 2008 — edited Apr 1 2008Hi All,
I have a JComboBox, which I'm populating by a custom model (say, MyComboBoxModel, in which I'm using an ArrayList). I also have one JButton.
What I want to do is, when the button is clicked, a new string (anything random) will be appended to the existing combo box items. How can I do this?
Thank you.