PDA

View Full Version : Menu of toolbar open to up?



andre_guitar7
31 Mar 2009, 6:41 AM
How to set menu of toolbar open to up? Equal to Windows?


public class TestesGWT implements EntryPoint
{
public void onModuleLoad()
{
ToolBar toolBar = new ToolBar();

TextToolItem item1 = new TextToolItem("Start");

Menu menu = new Menu();

CheckMenuItem menuItem = new CheckMenuItem("I Like Cats");
menu.add(menuItem);

menuItem = new CheckMenuItem("I Like Dogs");
menu.add(menuItem);

item1.setMenu(menu);

toolBar.add(item1);


RootPanel.get("menu").add(toolBar);
}
}