-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
1.4.2
-
Fix Understood
-
x86
-
windows_2000
Name: dk106046 Date: 07/07/2003
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)
(also 1.4.1, 1.3.1, 1.3.0)
1. Setup Japanese input locale (add hotkey for locale)
2. Run testcase
java Test
3. Type "a" then toggle the orientation using ctrl+shift+o, then type "b" and you'll see the text right justified.Toggle the orientation back to the left using ctrl+shift+o.
4. Activate Japanese Hiragana using your hotkey
5. Type "kanji".
Japanese Hiragana string is shown as a preedit text.
However, it is located at the next line. <----- *A
And the cursor is located at the next line of the preedit text. <--- *A
7. Press Enter to commit the text.
Then the committed text is moved to the first line.
8. Press Enter again to move the cursor to a new line.
9. Type "kanji".
Japanese Hiragana is shown as a preedit text.
However it does not have underline, which means a preedit state. <--- *B
Problem *A: Is this designed behavior? If so the behavior is very different from prior to the orientation toggle.
Problem *B: This looks like a bug. Preedit text should definitely be underlined prior to being commited. Also the behavior differs from *A.
All the commited text is correctly positioned. These problem are with preedit text.
--------------------------------Test Case----------------------------------------------
import javax.swing.*;
public class Test extends JFrame{
Test(String s){
super(s);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTextArea t=new JTextArea();
getContentPane().add(t);
setSize(200,200);
show();
}
public static void main(String[] args){
Test test=new Test("Test JTextArea");
}
}
----------------------------------------------------------------------------------------
[This bug is being submitted as a courtesy, in order to maintain uniformity between Sun & IBM JDKs. It has been fixed in IBM JDKs. Please contact ###@###.### if you have questions.]
======================================================================