From 7c7b47bcf982629c1cb6565686bda2e565e8c81c Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Fri, 30 Jan 2015 19:00:07 +0300 Subject: [PATCH] IDEA-47243 Project structure / Modules / a module / Sources tab: "Language level" combo does not react on assigned mnemonic 'L' --- .../roots/ui/configuration/LanguageLevelConfigurable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelConfigurable.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelConfigurable.java index 1ed84cda2c7f..a22242f4093a 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelConfigurable.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelConfigurable.java @@ -46,7 +46,9 @@ public abstract class LanguageLevelConfigurable implements UnnamedConfigurable { }); myLanguageLevelCombo.insertItemAt(LanguageLevelCombo.USE_PROJECT_LANGUAGE_LEVEL, 0); - myPanel.add(new JLabel(ProjectBundle.message("module.module.language.level")), + JLabel label = new JLabel(ProjectBundle.message("module.module.language.level")); + label.setLabelFor(myLanguageLevelCombo); + myPanel.add(label, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(12, 6, 12, 0), 0, 0)); myPanel.add(myLanguageLevelCombo, new GridBagConstraints(1, 0, 1, 1, 1, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(6, 6, 12, 0), 0, 0));