Can’t use an ItemListener because my JComboBox items are generated dinamically so that would generate exceptions when the list is empty.
I need to catch basically the state after a mouse click event on an item (the problem with MouseListener is that it catches the event even when I open the list of items in the JComboBox).
Can’t use an ItemListener because my JComboBox items are generated dinamically so that would
Share
Try to use
ActionListener.See How to Use Combo Boxes. Especially Handling Events on a Combo Box section.