I have this code that I am trying to use to center two items in the
center of the screen.

HorizontalPanel rosterPanel = new HorizontalPanel();
rosterPanel.setWidth("100%");
rosterPanel.setBorderWidth(3);
rosterPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
rosterPanel.add(new Label("Student Roster:"));
rosterPanel.add(this.rosterBox);
rosterPanel.setSpacing(10);

The items are still left justified on the screen.

Why is this so?

I looked at previous postings online and they mention a TableData
class..but no such thing exists....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to