if (peer != null) { ChoicePeer cp = (ChoicePeer) peer; cp.add (item, index); } else if (selectedIndex == -1 || selectedIndex >= index) select(0); }
if (peer != null) ((ChoicePeer) peer).add (item, index);  if (selectedIndex == -1 || selectedIndex >= index) select(0); }
insert(String item, int index){  if (index < 0)    throw new IllegalArgumentException ("index may not be less then 0");  if (index > getItemCount ())    index = getItemCount ();  pItems.insertElementAt(item, index);  if (peer != null)    {      ChoicePeer cp = (ChoicePeer) peer;      cp.add (item, index);    }  else if (selectedIndex == -1 || selectedIndex >= index)    select(0);}