0

guys, good day!

I just want to ask how to reload/refresh a JComboBox. I have a cardlayout with 3 panels, each panel has its own combobox. what I want to do is to reload the combobox to its original state each time I swap the cardlayout.

updateUI();
repaint();
revalidate();

I did try to use these classes but failed.

2
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by jet101
0

use ComboBoxModel

can you show a simple example? thanks

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.