Search code examples
javaeventsjcombobox

Java JComboBox Drop Down event


Is it possible to determine when a user clicks on a JComboBox to drop down the list of items in it? I just want to capture this event, not when an item is selected from the list.

Many thanks,

Andez


Solution

  • You can use JComboxBox#addPopupMenuListener(PopupMenuListener listener)