Example usage for javax.swing JComboBox firePopupMenuCanceled

List of usage examples for javax.swing JComboBox firePopupMenuCanceled

Introduction

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

Prototype

public void firePopupMenuCanceled() 

Source Link

Document

Notifies PopupMenuListeners that the popup portion of the combo box has been canceled.

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);/* w w w .j  a v a2s.  com*/
    jc.firePopupMenuCanceled();

}