Example usage for javax.swing JComboBox firePopupMenuWillBecomeVisible

List of usage examples for javax.swing JComboBox firePopupMenuWillBecomeVisible

Introduction

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

Prototype

public void firePopupMenuWillBecomeVisible() 

Source Link

Document

Notifies PopupMenuListeners that the popup portion of the combo box will become visible.

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 . java  2s  .co m

    jc.firePopupMenuWillBecomeVisible();
}