Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366568

Allow replacing built in application menu in system menu bar

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx24
    • javafx
    • None

      Currently internal JavaFX code creates the first menu in the system menu bar, the one appearing immediately beside the Apple menu. This is commonly known as the application menu. This menu contains common items like Hide <app name>, Hide Others, Show All, and Quit <app name>. Its presence isn’t documented in JavaFX and there is no API that allows it to be customized. It has some unique properties; it is present even for windows that don’t enable the system menu and remains present even when no window has focus (for example when they’re all iconified).

      The special handling of the application menu in JavaFX is probably due to OS limitations that were removed in 10.6. The only remaining limitation is that the title can’t be customized; the OS derives the title from information in the application bundle.

      The JavaFX application menu has many limitations. Clients cannot add standard items like About or Settings. The menu item titles cannot be localized. The behavior of Quit cannot be changed and is incorrect when setImplicitExit is set to false.

      JavaFX should provide an API that allows a client to replace the application menu.

            mfox Martin Fox
            mfox Martin Fox
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: