Example usage for javax.swing JComboBox getPopupMenuListeners

List of usage examples for javax.swing JComboBox getPopupMenuListeners

Introduction

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

Prototype

@BeanProperty(bound = false)
public PopupMenuListener[] getPopupMenuListeners() 

Source Link

Document

Returns an array of all the PopupMenuListeners added to this JComboBox with addPopupMenuListener().

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  va  2  s  . c  o m

    PopupMenuListener[] pop = jc.getPopupMenuListeners();

}