Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4170776

In solaris, highlight string make caret invisible

XMLWordPrintable

    • 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

            okutsu Masayoshi Okutsu
            pmei Paul Mei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: