title: How to right align buttons on a HorizontalPanel (GWT)
body: <p>I am trying to implement a simple dialog. I would like to have OK and cancel buttons aligned right at the bottom of the dialog. I embed the buttons into the HorizontalPanel and try to set horizontal alignment to RIGHT. However, this does not work. How to make the buttons align right? Thank you.
  Here's the snippet:</p>
  
  <pre><code>private Widget createButtonsPanel() {
      HorizontalPanel hp = new HorizontalPanel();
      hp.setCellHorizontalAlignment(saveButton, HasHorizontalAlignment.ALIGN_RIGHT);
      hp.setCellHorizontalAlignment(cancelButton, HasHorizontalAlignment.ALIGN_RIGHT);
      hp.add(saveButton);
      hp.add(cancelButton);       
  
      return hp;
  }
  </code></pre>