Search code examples
javafxjavafx-2menubar

Application-wide menu bar in JavaFX 2.1?


The JavaFX 2.1 Release Notes states that this release includes,

  • UI enhancements, including controls for Combo Box, Stacked Chart, and application-wide menu bar.

What does the "application-wide menu bar" mean? What does it imply?
Looked for UI Components but could not find any reference to it.


Solution

  • I believe the comment refers to the new JavaFX 2.1 ability to set a menu bar to act as a system level application menu bar. For example, on Mac, it would be the menu bar at the top of the screen.

    I think the added property is MenuBar.useSystemMenuBarProperty.

    Windows (and some Linux window managers) don't have the same concept, so I don't think the property does anything on those platforms.