public abstract interface ListPeer extends ComponentPeer { // Public Instance Methods 1.1 public abstract void add(String item, int index); public abstract void addItem(String item, int index); public abstract void clear(); public abstract void delItems(int start, int end); public abstract void deselect(int index); 1.1 public abstract Dimension getMinimumSize(int rows); 1.1 public abstract Dimension getPreferredSize(int rows); public abstract int[] getSelectedIndexes(); public abstract void makeVisible(int index); public abstract Dimension minimumSize(int v); public abstract Dimension preferredSize(int v); 1.1 public abstract void removeAll(); public abstract void select(int index); 1.1 public abstract void setMultipleMode(boolean b); public abstract void setMultipleSelections(boolean v); }
Toolkit.createList()