add(String item) { if (item == null) throw new NullPointerException ("item must be non-null");
public synchronized void add(String item) { if (item == null) throw new NullPointerException ("item must be non-null");
add(String item){  if (item == null)    throw new NullPointerException ("item must be non-null");  pItems.addElement(item);  int i = pItems.size () - 1;  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.add (item, i);    }  else if (selectedIndex == -1)     select(0);}