/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
/** * Selects an item from the model and returns that map value. * * @param selectedItem * selects the item at the specified index in this model * @return the value for the item at the selected index */ public V getValue(int selectedItem) { return getValue(getElementAt(selectedItem)); } }
if (myComponent instanceof JComboBox) { JComboBox jComboBox = (JComboBox) myComponent; MapComboBoxModel model = (MapComboBoxModel) jComboBox.getModel(); values+=""+model.getValue(model.getSelectedItem())+","; }