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

[macosx] Space menu accelerator not rendered correctly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Resolved In Build:
      b08
    • OS:
      os_x

      Description

      when using the space character as accelerator for a JMenuItem, it is not rendered correctly (I guess a ' ' is rendered, but that's kind of hard to see ;-).
      OS X applications like iTunes (in the controls menu) do render the word "Space", localized to the current locale.

      This is how it fails:

      action.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0));
      new JMenuItem(action);

        Attachments

          Activity

            People

            • Assignee:
              pchelko Petr Pchelko (Inactive)
              Reporter:
              pchelko Petr Pchelko (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: