code: void setSearchPanelVisible(boolean b)
      {
          if (!searchPanelVisible && b)
          {
              add(searchPanel, BorderLayout.NORTH);
              revalidate();
          }
          else if (searchPanelVisible && !b)
          {
              remove(searchPanel);
              revalidate();
          }
          searchPanelVisible = b;
      }
docs: Set whether the search panel is currently visible
  
  @param b The state