Hi, I have a menubar with a few child menus. I need to implement clickable item on the toolbar - this is so the user doesnt have to click the menu to activate a tool.
I can change the text out for an image which is fine but there doesnt seem to be an event for clicking the menu parent item. I have found some code that will add an event using the "OnShowing" event but since this item has no children the event never fires - there is no OnMouseClick on the menu as far as I can see in the JavaDocs.
Closest thing Ive found is to use a label; https://stackoverflow.com/questions/48017645/event-handler-in-javafx-for-menu
Does anyone have any solutions before I try the above?
I can change the text out for an image which is fine but there doesnt seem to be an event for clicking the menu parent item. I have found some code that will add an event using the "OnShowing" event but since this item has no children the event never fires - there is no OnMouseClick on the menu as far as I can see in the JavaDocs.
Closest thing Ive found is to use a label; https://stackoverflow.com/questions/48017645/event-handler-in-javafx-for-menu
Does anyone have any solutions before I try the above?