java - How to add close button in GWT -


i've code:

... menubar options = new menubar(true); options.additem("first label", new scheduledcommand()         {         @override             public void execute() {              popuppanel popupproperties = new popuppanel();             tabpanel tabpanel = new tabpanel();             flowpanel flowpanel = new flowpanel();             ...             flowpanel.add(...);             scroll = new scrollpanel(flowpanel);              tabpanel.add(scroll, "first tab");             popupproperties.add(tabpanel);              rootpanel.get().add(popupproperties);             popupproperties.center();             popupproperties.show();             }         } ... 

if add simplepanel button (close) popupproperties, doesn't work. how can it? lot.

use verticalpanel , add popup-panel. add tabpanel , button verticalpanel.

and don't add popup-panel panel. use center() show it.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -