code: public void setPanel(int panelId) {
  
          m_panel.showWidget(panelId);
          removeAllButtons();
          if (panelId == PANEL_SELECT) {
              for (CmsPushButton button : m_publishSelectPanel.getButtons()) {
                  addButton(button);
              }
              m_publishSelectPanel.updateDialogTitle();
          } else if (panelId == PANEL_BROKEN_LINKS) {
              for (CmsPushButton button : m_brokenLinksPanel.getButtons()) {
                  addButton(button);
              }
              m_brokenLinksPanel.updateTitle();
          }
      }
docs: Changes the currently active panel.<p>
  
  @param panelId the number of the panel to show