Set item list in JComboBox


I have a JComboBox, in the constructor you can pass a string array of items for the list. After it's already been constructed though, how can I set it to use a different list of items?

Who is Participating?
muktajindalConnect With a Mentor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.