code: public void addButtonRight(Component button) {
  
          if (m_buttonsFolded && !isAlwaysShow(button)) {
              m_rightButtons.addComponent(button);
          } else {
              int dropDownIndex = m_itemsRight.getComponentIndex(m_userDropDown);
              if (dropDownIndex >= 0) {
                  m_itemsRight.addComponent(button, dropDownIndex);
              } else {
                  m_itemsRight.addComponent(button);
              }
          }
          updateFoldingThreshhold();
      }
docs: Adds a button to right toolbar side.<p>
  
  @param button the button