Consider the following test case on Windows:
1. Check "label1.setLabelFor(button1)";
2. Check "label1.mnemonicsParse()";
3. Push "Alt"; Push "1"; The button "Button 1" will get focus;
4.Check "label1.setLabelFor(button2)";
5. Push "1";
The button "Button 1" will get focus but it is expected that it won't be focused in such case.
in b85 the expected behavior is reproducible.
1. Check "label1.setLabelFor(button1)";
2. Check "label1.mnemonicsParse()";
3. Push "Alt"; Push "1"; The button "Button 1" will get focus;
4.Check "label1.setLabelFor(button2)";
5. Push "1";
The button "Button 1" will get focus but it is expected that it won't be focused in such case.
in b85 the expected behavior is reproducible.
- relates to
-
JDK-8115147 [Mnemonics] setLabelFor(null) doesn't remove label binding to the button
- Closed
-
JDK-8117637 Label: setLabelFor() does not work dynamically
- Closed