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

[macosx] Space menu accelerator not rendered correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 8, 9
    • client-libs
    • None
    • b08
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: