-
Bug
-
Resolution: Fixed
-
P3
-
8u25, 9
-
b76
-
x86_64
-
windows_7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8136019 | emb-9 | Semyon Sadetsky | P3 | Resolved | Fixed | team |
JDK-8220247 | openjdk8u212 | Semyon Sadetsky | P3 | Resolved | Fixed | b01 |
JDK-8215856 | 8u212 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8214436 | 8u211 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8220975 | emb-8u211 | Dmitry Markov | P3 | Resolved | Fixed | master |
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
ver : Window 7 Pro, 64bit,
A DESCRIPTION OF THE PROBLEM :
When Input too long Thailand characters(Must Include space) in JTextField and exceed its display size, we found the cursor's behavior is odd while moving the cursor.
The cursor will not locate at between two Thai character, but in the middle of one single Thai character.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a simple JTextField
2. Input long Thai language wording (*Must With space in it)
Exceed JTextField's display size
Thai: กรุณาตั้งรหัสผ่านเพื่อค วามปลอดภัยกรุณาตั้งร หัสผ่านเพื่อควา มปลอดภัยกรุณาตั้งรหัสผ่านเ
3. Move the cursor to the end of JTextField using keyboard "->"
4. Move cursor back using keyboard "<-"
5. Then I found that, the cursor will locate at middle of one Thai character, and the characters behind the cursor will disappear.
6. At this time, if we clear all Thai characters, and input Chinese, then try steps 3 and 4, there will be similar issue.
* But if we re-compile and run the application again, Just input longer Chinese , it has no this issue. Seems something wrong with the Thai input.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Whenever input longer Thai character and move the cursor, the display and behavior is right.
ACTUAL -
the cursor will locate at middle of one Thai character, and the characters behind the cursor will disappear.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No any error
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class TestTexts extends JFrame{
private JLabel label = new JLabel("Status");
private JTextField textField;
private JPasswordField pwdField;
private JTextArea textArea;
private JFormattedTextField fField;
public TestTexts() {
super("Test Texts");
this.pack();
setDefaultCloseOperation(EXIT_ON_CLOSE);
getContentPane().setLayout(new java.awt.FlowLayout());
textField = new JTextField(15);
getContentPane().add(textField);
setSize(200, 200);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
new TestTexts().show();
}
});
}
}
---------- END SOURCE ----------
- backported by
-
JDK-8136019 [JTextField] When input too long Thai character, cursor's behavior is odd
- Resolved
-
JDK-8214436 [JTextField] When input too long Thai character, cursor's behavior is odd
- Resolved
-
JDK-8215856 [JTextField] When input too long Thai character, cursor's behavior is odd
- Resolved
-
JDK-8220247 [JTextField] When input too long Thai character, cursor's behavior is odd
- Resolved
-
JDK-8220975 [JTextField] When input too long Thai character, cursor's behavior is odd
- Resolved
- duplicates
-
JDK-8212767 JTextField scrolling behavior when entering Hebrew and English text.
- Closed
- relates to
-
JDK-8133731 [TEST_BUG] Unmappable in ASCII character such as Thai should be escaped in the regtests targeted for a regular non-I18n runs
- Resolved
-
JDK-6973777 JCK manual case JEditorPaneTests.html#JEditorPane fails in jdk7 b100
- Closed
-
JDK-8212767 JTextField scrolling behavior when entering Hebrew and English text.
- Closed