dian ruzda wrote:
can we make menu control by programatically, so I shouldn't write
menu.xml again, all menu configuration create otomatically by program ?
Use one of the public Menu constructors and set the properties
as needed. For example:
Menu rootMenu = new Menu("rootMenu");
Menu editCustomer = createMenu("Edit Customer", rootMenu);
...
private static Menu createMenu(String label, Menu parent) {
Menu menu = new Menu();
menu.setLabel(label);
menu.setTitle(label);
parent.getChildren().add(menu);
return menu;
}
kind regards
bob