-
Bug
-
Resolution: Fixed
-
P3
-
8u144, 10, 11
-
b05
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8212517 | 8u202 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8208943 | 8u201 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8198851 | 8u192 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8200596 | 8u191 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8201390 | 8u181 | Dmitry Markov | P3 | Resolved | Fixed | b02 |
JDK-8200532 | 8u172 | Dmitry Markov | P3 | Resolved | Fixed | b31 |
JDK-8200066 | 8u162 | Philip Race | P3 | Closed | Fixed | b37 |
JDK-8216844 | emb-8u201 | Dmitry Markov | P3 | Resolved | Fixed | master |
JDK-8211534 | emb-8u191 | Dmitry Markov | P3 | Resolved | Fixed | master |
JDK-8203147 | emb-8u181 | Dmitry Markov | P3 | Resolved | Fixed | b02 |
JDK-8208734 | openjdk7u | Dmitry Markov | P3 | Resolved | Fixed | master |
If "Let me set a different input method for each app window" checkbox is disabled, Swing applications switch System keyboard layout to the layout they were started with.
On Windows 10 you can find the checkbox at Control Panel -> Clock, Language and Region -> Language -> Advanced Settings -> "Let me set a different input method for each app window"
To reproduce the problem, disable the checkbox.
Add at least two languages at Control Panel -> Clock, Language and Region -> Language -> Change you language preferences
For instance, you can add Russian and English languages
Run the java app
public class Test {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame jFrame = new JFrame("Test");
jFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
jFrame.setSize(new Dimension(200,200));
jFrame.add(new JTextArea());
jFrame.pack();
jFrame.setVisible(true);
});
}
}
Deactivate the Swing frame (click on the desktop or any other application window), change the input language.
Activate the Swing frame again. Being activated the frame changes the input language system wide.
- backported by
-
JDK-8198851 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8200532 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8200596 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8201390 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8203147 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8208734 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8208943 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8211534 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8212517 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8216844 On Windows Swing changes keyboard layout on a window activation
- Resolved
-
JDK-8200066 On Windows Swing changes keyboard layout on a window activation
- Closed
- relates to
-
JDK-8324491 Keyboard layout didn't keep its state if it was changed when dialog was active
- Resolved