code: public void setModel(TableModel model)
      {
  // Column 3 and 4: (Scroll Pane Headings)
          if (m_model != null)
              m_model.removeTableModelListener(this);
          m_model = model;
          if (model != null)
              model.addTableModelListener(this);
          this.setupPanel();      // setup a new panel
      }
docs: Set a (new) model.
  @param model The table model.