Example usage for javax.swing JComboBox getAction

List of usage examples for javax.swing JComboBox getAction

Introduction

In this page you can find the example usage for javax.swing JComboBox getAction.

Prototype

public Action getAction() 

Source Link

Document

Returns the currently set Action for this ActionEvent source, or null if no Action is set.

Usage

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();
}