code: public void setCollapsed (boolean collapse)
      {
          if (collapse) {
              _content.setVisible(false);
              _trigger.setIcon(_downIcon);
  
          } else {
              _content.setVisible(true);
              _trigger.setIcon(_upIcon);
          }
          SwingUtil.refresh(this);
      }
docs: Set the collapsion state.