MenuBar Beans

Here is the code

//Add Menu Items to the Menu
elements.menu_file.add(elements.menu_item_new, "New", 0);
elements.menu_file.addSeparator();
elements.menu_file.add(elements.menu_item_open, "Open", 1);

//Add Menu to the Menu Bar
elements.menu_bar.add(elements.menu_file,"File",0);

I am sure there is something wrong in the code.
The Menu is not displaying properly.
Please, any help?

Any Help?

There is a great plugin that will create a real menubar (not one in a bean): Servoy Components – Plugins, Beans, Web Components, Angular Services & Servoy Developer Consulting

And again: you are asking about the functionality of a non-Servoy component, that is purely Java…