Example usage for javax.swing JComboBox getPrototypeDisplayValue

List of usage examples for javax.swing JComboBox getPrototypeDisplayValue

Introduction

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

Prototype

public E getPrototypeDisplayValue() 

Source Link

Document

Returns the "prototypical display" value - an Object used for the calculation of the display height and width.

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.jav  a  2 s  . c om

    Object obj = jc.getPrototypeDisplayValue();
}