1. How can I create a menu bar?
2. How can I use com.smartgwt.client.widgets.menu.MenuBar class?
Thanks.
2. How can I use com.smartgwt.client.widgets.menu.MenuBar class?
Thanks.
Menu menu1 = new Menu(); menu1.setTitle("File"); menu1.setItems(new MenuItem("New"), new MenuItem("Open")); Menu menu2 = new Menu(); menu2.setTitle("Search"); menu2.setItems(new MenuItem("Find"), new MenuItem("Replace")); MenuBar menuBar = new MenuBar(); menuBar.setMenus(menu1, menu2); menuBar.draw();
Comment