code: public void removeParamPanel(AbstractParamPanel panel) {
          if (currentShownPanel == panel) {
              currentShownPanel = null;
              nameLastSelectedPanel = null;
              if (isShowing()) {
                  if (tablePanel.isEmpty()) {
                      getTxtHeadline().setText("");
                      getHelpButton().setVisible(false);
                  } else {
                      getTreeParam().setSelectionPath(new TreePath(getFirstAvailableNode().getPath()));
                  }
              }
          }
  
          DefaultMutableTreeNode node = this.getTreeNodeFromPanelName(panel.getName(), true);
          if (node != null) {
              getTreeModel().removeNodeFromParent(node);
          }
          
          getPanelParam().remove(panel);
          tablePanel.remove(panel.getName());
      }
docs: Removes the given panel.
  
  @param panel the panel that will be removed