JComboBox combo = new JComboBox();
combo.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
System.out.println("item: " + e.getItem() + " | state: " + e.getStateChange());
}
});
jameinst du itemStateChanged ?
Java:JComboBox combo = new JComboBox(); combo.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { System.out.println("item: " + e.getItem() + " | state: " + e.getStateChange()); } });
itemStateChanged()