Example usage for javax.swing MutableComboBoxModel getElementAt

List of usage examples for javax.swing MutableComboBoxModel getElementAt

Introduction

In this page you can find the example usage for javax.swing MutableComboBoxModel getElementAt.

Prototype

E getElementAt(int index);

Source Link

Document

Returns the value at the specified index.

Usage

From source file:com.anrisoftware.prefdialog.miscswing.comboboxhistory.HistoryComboBoxModel.java

private Set<Object> fromModel(MutableComboBoxModel model) {
    Set<Object> set = new HashSet<Object>(model.getSize());
    for (int i = 0; i < model.getSize(); i++) {
        set.add(model.getElementAt(i));
    }/* w  w w . j  av  a  2  s .c om*/
    return set;
}