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

[macosx] Sometimes JLabel's mnemonic doesn't work if keyboard focus on JTextField

XMLWordPrintable

        http://java.net/jira/browse/MACOSX_PORT-674 submitted 2011/11/08 by Alexander Petrov
        1) Set mnemonic 'b' for label (JLabel.setDisplayedMnemonic('b')<img class=&quot;emoticon&quot; src=&quot;/jira/images/icons/emoticons/wink.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/>
        2) Set keyboard focus on JTextField.
        3) Press Alt+b
        Result: focus doesn't switch to the label's component but symbol will be printer in JTextField.
        Same problem reproduced with next symbols:
        'x' 'v' 'n' '&lt;' '&gt;' 'd' 'j' ';' '<span class=&quot;error&quot;>&#91;&#39; &#39;&#93;</span>' 'i' 'u' 't' 'e' 'w'
        Build: b216
        Keywords: test-fail-macos
        Tests failed:
        closed/javax/swing/plaf/basic/BasicLabelUI/4798542/bug4798542.java

              Unassigned Unassigned
              vasya Vassili Igouchkine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: