I need to populate a JComboBox with an ArrayList. Is there any way to do this?
Use the toArray() method of the ArrayList class and pass it into the constructor of the JComboBox
toArray()
JComboBox
See the JavaDoc and tutorial for more info.
2.1m questions
2.1m answers
60 comments
57.0k users