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

[Mnemonics] setLabelFor(null) doesn't remove label binding to the button

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • jdk1.8.0b89, Windows 7 x64

      To reproduce on Windows:
      1. Check "label1.setLabelFor(button1)";
      2. Check "label1.mnemonicsParse()";
      3. Push ALT and then 1;
      Result: focus will be on the Button 1
      4. Uncheck "label1.setLabelFor(button1)";
      5. Push TAB to remove focus from the Button 1;
      6. Push 1.
      It is expected that the focus won't move to the Button 1 but it will.

            miflemi Mick Fleming
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: