Thursday, November 6, 2008

Button Alignment

To align a button in the center of an a vertical container using google web toolkit:

Button selectOther = new Button("My Button");

favListing.setCellHorizontalAlignment(selectOther, HasHorizontalAlignment.ALIGN_CENTER);