I have a DecpPanel containing a VerticalPanel that again contains 3 objects (see below). I want the objects to be aligned at the top as they does if I use a VerticalPanel. In this case the first object is placed at the top, the second in the middle and the third at the bottom.
DeckPanel dp = new DeckPanel();
dp.setSize("800px", "600px");
VerticalPanel vp = new VerticalPanel();
Button b1 = new Button("Button 1");
Button b2 = new Button("Button 2");
Button b3 = new Button("Button 3");
vp.add(b1);
vp.add(b2);
vp.add(b3);
dp.add(vp);
RootPanel.get().add(dp);
(I am just showing one deck here. I have of course more decks. That's the whole point )
How can I get these objects to be alligned from top. I appreciate any help. I am fairly new to GWT