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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -