java - Get if someone is using a JComboBox? -


like title says, need know if using combobox. i.e. when box dropped down.

is there method this? maybe actionlistener?

use jcombobox#addpopupmenulistener():

combobox.addpopupmenulistener(new popupmenulistener() {     @override     public void popupmenuwillbecomevisible(popupmenuevent e)     {         // ...       }      @override     public void popupmenuwillbecomeinvisible(popupmenuevent e)     {         // ...       }      @override     public void popupmenucanceled(popupmenuevent e)     {         // ...     } }); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -