mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set displayed mnemonic index if there are several letters
This commit is contained in:
@@ -84,6 +84,7 @@ public class FormBuilder {
|
||||
final int index = UIUtil.getDisplayMnemonicIndex(labelText);
|
||||
if (index != -1) {
|
||||
label.setDisplayedMnemonic(labelText.charAt(index + 1));
|
||||
label.setDisplayedMnemonicIndex(index);
|
||||
}
|
||||
label.setLabelFor(component);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user