|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.luniks.swing.Utils
Class with some swing-related static utility methods
| Constructor Summary | |
Utils()
|
|
| Method Summary | |
static java.util.List |
getAllItems(javax.swing.JComboBox comboBox)
Returns an ArrayList containing all items in a ComboBox |
static void |
populate(javax.swing.JComboBox comboBox,
java.util.Collection collection)
Populates the combobox given as first argument with the elements contained in the collection given as second argument. |
static void |
populate(javax.swing.JComboBox comboBox,
java.lang.Object[] list)
Populates the combobox given as first argument with the elements contained in the array given as second argument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Utils()
| Method Detail |
public static void populate(javax.swing.JComboBox comboBox,
java.util.Collection collection)
comboBox - the combobox to be populatedcollection - the collection containing the elements
public static void populate(javax.swing.JComboBox comboBox,
java.lang.Object[] list)
comboBox - the combobox to be populatedlist - the array containing the elementspublic static java.util.List getAllItems(javax.swing.JComboBox comboBox)
comboBox - the combobox to get the items from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||