stevel05 Expert Licensed User Longtime User Dec 20, 2013 #1 Erel, Could you add an onaction callback to the Menu object? I would like to create an item on the menu with no dropdown, for an about item for instance.
Erel, Could you add an onaction callback to the Menu object? I would like to create an item on the menu with no dropdown, for an about item for instance.
stevel05 Expert Licensed User Longtime User Dec 20, 2013 #2 After a little investigation, although Menu does inherit onAction from javafx.scene.control.MenuItem, it is not possible to use it. There is a work around by adding a label to the Menu node. If I can get it working elegantly I'll post the solution.
After a little investigation, although Menu does inherit onAction from javafx.scene.control.MenuItem, it is not possible to use it. There is a work around by adding a label to the Menu node. If I can get it working elegantly I'll post the solution.