mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE on startup (license screen doesn't have application initialized yet)
This commit is contained in:
@@ -34,7 +34,7 @@ public class NonFocusableCheckBox extends JCheckBox {
|
||||
}
|
||||
|
||||
private void initFocusability() {
|
||||
if (!UISettings.getInstance().DISABLE_MNEMONICS_IN_CONTROLS) { // Or that won't be keyboard accessible at all
|
||||
if (!UISettings.getShadowInstance().DISABLE_MNEMONICS_IN_CONTROLS) { // Or that won't be keyboard accessible at all
|
||||
setFocusable(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class DialogUtil{
|
||||
}
|
||||
if (mnemonic != '\0') {
|
||||
button.setText(realText.toString());
|
||||
if (UISettings.getInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
|
||||
if (UISettings.getShadowInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
|
||||
button.setMnemonic(0);
|
||||
button.setDisplayedMnemonicIndex(-1);
|
||||
button.setFocusable(true);
|
||||
@@ -93,7 +93,7 @@ public class DialogUtil{
|
||||
}
|
||||
if (mnemonic != '\0') {
|
||||
label.setText(realText.toString());
|
||||
if (UISettings.getInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
|
||||
if (UISettings.getShadowInstance().DISABLE_MNEMONICS_IN_CONTROLS) {
|
||||
label.setDisplayedMnemonic(0);
|
||||
label.setDisplayedMnemonicIndex(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user