Create Custom Dialog box smargwt

Create Custom Dialog box

1. replace the dialog class with window class, as the dialog class has no really advantage (as far as I have experienced)
2. use the addMember methode instead the addChild, with this one all layout methods are effectiv.

Code:
// first final Window purchaseDlg = new Window();

// second, with the vpanel and LayoutSpacer removed (I don't think, you need them any longer)
HLayout hpanel = new HLayout();
hpanel.setLayout(Alignment.CENTER);
hpanel.addMember(button);
purchaseDlg.addItem(hpanel);

Comments

Popular posts from this blog

how to access the DOM gwt smartclient

smart gwt allow only numbers in textfield