code: public void addButton(Widget button) {
  
          if (m_isFrame) {
              initButtonPanel();
              m_buttonPanel.insert(button, 0);
          } else {
              m_popup.addButton(button);
          }
      }
docs: Adds a new button to the button bar.<p>
  
  @param button the button to add