Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java jcombobox selected item changed

class ItemChangeListener implements ItemListener{
    @Override
    public void itemStateChanged(ItemEvent event) {
       if (event.getStateChange() == ItemEvent.SELECTED) {
          Object item = event.getItem();
          // do something with object
       }
    }       
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #jcombobox #selected #item #changed
ADD COMMENT
Topic
Name
1+2 =