Example usage for javax.swing JComboBox firePopupMenuWillBecomeInvisible

List of usage examples for javax.swing JComboBox firePopupMenuWillBecomeInvisible

Introduction

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

Prototype

public void firePopupMenuWillBecomeInvisible() 

Source Link

Document

Notifies PopupMenuListeners that the popup portion of the combo box has become invisible.

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);//from w  ww. j  a v a 2  s  .  com

    jc.firePopupMenuWillBecomeInvisible();
}