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

[macosx] Accelerator doesn't work in application without windows

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b124
    • Introduced In Version:
      9
    • OS:
      os_x

      Description

      Run the attached test on OS X with jdk9 b124 or later. It fails: its JMenuItem apparently is not activated.

      Specifics of the test is, it does not create any windows, no JFrame etc. It also doesn't set explicitly apple.laf.useScreenMenuBar property. Instead, it depends on the new java.awt.Desktop functionality: an application may very well have no window but still use an OS X system menu bar and be useful.

      It worked since introducing new Desktop feature until jdk9 b124 -- so we should treat it as a regression in jdk9 timeframe.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssadetsky Semyon Sadetsky (Inactive)
              Reporter:
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: