List of usage examples for javax.swing JComboBox getAction
public Action getAction()
Action
for this ActionEvent
source, or null
if no Action
is set. From source file:Main.java
public Main() { JComboBox jc = new JComboBox(); jc.addItem("France"); jc.addItem("Germany"); jc.addItem("Italy"); jc.addItem("Japan"); jc.addItemListener(this); add(jc);//ww w.j a v a 2 s . c o m Action ac = jc.getAction(); }