Is there any way to achieve AutoFit behaviour of normal Button class for MenuButtons?
I created different Menus and set them via MenuBar.setMenus(Menu... menus). The MenuButtons are automatically created and i can only set absolute width via Menu.setMenuButtonWidth(Integer width).
The forum includes a lot of threads that want to create a typical menubar (File, Edit, ...) but all of them are unanswered or did not contain any usefull information. The Showcase includes only examples with a single menu or menubutton but no complete menubar so there aren't some usefull inforamation too :/
Maybe someone can help?
I created different Menus and set them via MenuBar.setMenus(Menu... menus). The MenuButtons are automatically created and i can only set absolute width via Menu.setMenuButtonWidth(Integer width).
The forum includes a lot of threads that want to create a typical menubar (File, Edit, ...) but all of them are unanswered or did not contain any usefull information. The Showcase includes only examples with a single menu or menubutton but no complete menubar so there aren't some usefull inforamation too :/
Maybe someone can help?