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
Post a Comment