Example usage for javax.swing JComboBox setLightWeightPopupEnabled

List of usage examples for javax.swing JComboBox setLightWeightPopupEnabled

Introduction

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

Prototype

@BeanProperty(expert = true, description = "Set to <code>false</code> to require heavyweight popups.")
public void setLightWeightPopupEnabled(boolean aFlag) 

Source Link

Document

Sets the lightWeightPopupEnabled property, which provides a hint as to whether or not a lightweight Component should be used to contain the JComboBox, versus a heavyweight Component such as a Panel or a 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.setLightWeightPopupEnabled(true);
}