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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -