selectionModel = model; selectionModel.addListSelectionListener(this);
ListSelectionModel tmp = selectionModel; if (tmp != null) tmp.removeListSelectionListener(this); if (s != null) s.addListSelectionListener(this); selectionModel = s;
  public void setSelectionModel (ListSelectionModel model)  {    if (model == null)      throw new IllegalArgumentException();    // FIXME: Should we deregister from old model ?        selectionModel = model;    selectionModel.addListSelectionListener(this);  }