if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener);
  public void setView(Component v)  {    while (getComponentCount() > 0)      remove(0);    if (v != null)      {    add(v);    fireStateChanged();  }  }