-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2fcs
-
sparc
-
solaris_2.6
-
Not verified
AttributedString class is used in input method implementation.
In solaris, when i use the AttributedString class to implement the preedit string hightlights, It display the string reversely. If the caret position is in the string's range, this would make the caret position be invisible.
program segment:
AttributedString attrstr =
new AttributedString(showResult.getPreedit());
attrstr.addAttribute(TextAttribute.INPUT_METHOD_HIGHLIGHT, InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT,0,showResult.getPosition());
inputMethodEvent = new InputMethodEvent(client,
InputMethodEvent.INPUT_METHOD_TEXT_CHANGED,
attrstr.getIterator(),
committedCharacterCount,
null,
null);
paul.mei@prc 1998-09-02
In solaris, when i use the AttributedString class to implement the preedit string hightlights, It display the string reversely. If the caret position is in the string's range, this would make the caret position be invisible.
program segment:
AttributedString attrstr =
new AttributedString(showResult.getPreedit());
attrstr.addAttribute(TextAttribute.INPUT_METHOD_HIGHLIGHT, InputMethodHighlight.SELECTED_RAW_TEXT_HIGHLIGHT,0,showResult.getPosition());
inputMethodEvent = new InputMethodEvent(client,
InputMethodEvent.INPUT_METHOD_TEXT_CHANGED,
attrstr.getIterator(),
committedCharacterCount,
null,
null);
paul.mei@prc 1998-09-02
- relates to
-
JDK-4172050 In solaris, highlight string make caret invisible in JTextComponent
- Closed