Question : JComboBox action commands

When using a non-editable JComboBox, there are 2 actions:
1. Clicking on the pull-down arrow
2. Selecting an item in the list

Both of the actions generate an event action command of "comboBoxChanged".
Is there a way to distinguish between 1 and 2?

Answer : JComboBox action commands

I'm wondering why you're not using an ItemListener in the usual way..?
Random Solutions  
 
programming4us programming4us