Example usage for javax.swing JComboBox hidePopup

List of usage examples for javax.swing JComboBox hidePopup

Introduction

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

Prototype

public void hidePopup() 

Source Link

Document

Causes the combo box to close its popup window.

Usage

From source file:Main.java

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

    cb.hidePopup();
}