Example usage for javax.swing JComboBox setPopupVisible

List of usage examples for javax.swing JComboBox setPopupVisible

Introduction

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

Prototype

public void setPopupVisible(boolean v) 

Source Link

Document

Sets the visibility of the popup.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    String[] items = { "item1", "item2" };
    JComboBox cb = new JComboBox(items);

    cb.setPopupVisible(true);
}