PDA

View Full Version : Horizontal allignment of Button in a FormPanel



neman
21 Oct 2009, 5:38 AM
It just doesn't work with me.
Example code that doesn't work:


Button testButton = new Button("test button");
FormPanel testFormPanel = new FormPanel();
testFormPanel.setButtonAlign(HorizontalAlignment.CENTER);
testFormPanel.add(testButton);

Every time button is on the left side of the panel.
Am I doing something wrong?

Thanks for the help. Keep up the great work! :)

sven
21 Oct 2009, 5:40 AM
testFormPanel.addButton(testButton);


I also moved this to the help forum.

neman
21 Oct 2009, 5:42 AM
Thanks a lot! I don't know how this passed right by me :(
And sorry for posting in the wrong place..

Thanks again