class SwingListbox extends AbstractSwingContainer implements XulListbox, ListSelectionListener {

  public void setSelectedItems( Object[] items ) {
    int[] indices = new int[items.length];
    int index = -1;
    for ( Object object : items ) {
      indices[++index] = model.indexOf( object );
    }
    setSelectedIndices( indices );
  }

  public  SwingListbox( Element self, XulComponent parent, XulDomContainer container, String tagName );

}