-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b14
-
x86
-
windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2166595 | 7 | Sergey Groznyh | P3 | Resolved | Fixed | b72 |
JDK-2170346 | 6u12 | Sergey Groznyh | P3 | Resolved | Fixed | b02 |
JDK-2168469 | 6u11-rev | Sergey Groznyh | P3 | Resolved | Fixed | b04 |
JDK-2174436 | 5.0u19 | Karunakar Gajjala | P3 | Resolved | Fixed | b01 |
JDK-2167182 | 5.0u18-rev | Karunakar Gajjala | P3 | Resolved | Fixed | b03 |
Java Plug-in 1.6.0_06
ADDITIONAL OS VERSION INFORMATION :
Windows XP Professional ver 2002 Service Pack 2
A DESCRIPTION OF THE PROBLEM :
A user selects the following language for their system:
Input language: Chinese (Taiwan)
Keyboard layout/IME: Chinese (Traditional) - Quick
When typing text into a JTextPane, some characters will be selected in blue to indicate they can be changed into other Chinese characters. If the user presses enter when the last character or two characters are selected (by Java to indicate they can be changed using the IME) the cursor will appear on a new line. When the user presses a key, the cursor will change the selected character/s on the previous line and return the cursor to this line.
When using other applications such as Microsoft Notepad or Word, pressing enter and typing text will neither change the text on the previous line or move the cursor to the previous line.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Open the webpage:
http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
2. Click the 'Launch' button to load the webstart application.
3. Click in the bottom right editable pane.
4. Delete all content from the pane.
5. Change your input language to Chinese (Taiwan), keyboard input to Chinese (Traditional) - Quick.
6. Press the keys A, S, D. Press enter and you'll be taken to a new line. Press A and the text on line will change and the carat will be repositioned on line 1.
Try this functionality in Microsoft Word or notepad to see the difference.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
New text should appear on the second line.
ACTUAL -
Text on line one changes and the carat is repositioned to line 1.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
http://java.sun.com/docs/books/tutorial/uiswing/examples/components/TextSamplerDemoProject/src/components/TextSamplerDemo.java
---------- END SOURCE ----------
- backported by
-
JDK-2166595 Creating text in a JTextPane using Chinese text causes undesired behavior
- Resolved
-
JDK-2167182 Creating text in a JTextPane using Chinese text causes undesired behavior
- Resolved
-
JDK-2168469 Creating text in a JTextPane using Chinese text causes undesired behavior
- Resolved
-
JDK-2170346 Creating text in a JTextPane using Chinese text causes undesired behavior
- Resolved
-
JDK-2174436 Creating text in a JTextPane using Chinese text causes undesired behavior
- Resolved
- relates to
-
JDK-6808046 Having image problems on Asian Languages display
- Closed
-
JDK-6935155 @since tag is missing in JTextComponent.save/restoreComposedText
- Closed