List of usage examples for javax.swing MutableComboBoxModel getElementAt
E getElementAt(int index);
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; }