Example usage for javax.swing ComboBoxEditor setItem

List of usage examples for javax.swing ComboBoxEditor setItem

Introduction

In this page you can find the example usage for javax.swing ComboBoxEditor setItem.

Prototype

public void setItem(Object anObject);

Source Link

Document

Set the item that should be edited.

Usage

From source file:MainClass.java

public void actionPerformed(ActionEvent e) {
    JComboBox jcb = (JComboBox) e.getSource();

    ComboBoxEditor cbe = jcb.getEditor();

    cbe.setItem("");
}