Method Summary |
|
public void | addElements(Collection items) Add all elements from the specified collection into the list on the left side. |
public void | addElements(Object[] items) Add all elements from the specified array into the list on the left side. |
public void | clear() Removes all elements from this list. |
public Collection | getElements(boolean selected) Returns all elements with the specified selection state. |
public boolean | isAutoSortEnabled() Returns
true if elements are automatically sorted when added to this list. |
public static void | main(String[] args) Show the dialog box. |
public void | selectElements(Collection selected) Add the specified elements to the selection list (the one to appears on the right side). |
public void | setAutoSortEnabled(boolean autoSort) Sets to
true if elements should be automatically sorted when added to this list. |
public void | setFont(Font font) Set the font for both lists on the left and right side. |
public boolean | showDialog(Component owner, String title) Display this component in a dialog box and wait for the user to press "Ok".
This method can be invoked from any thread.
Parameters: owner - The owner (may be null). Parameters: title - The title to write in the window bar. |