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

On XAWT Text, japanese characters inputted by InputMethod and selected are blacked out.

    XMLWordPrintable

Details

    • Cause Known
    • x86, sparc
    • solaris_2.5.1, solaris_10

    Description

      Recreate steps:
      1. Set up Japanese environment and login

      2. Launch a Java application which has AWT Text component with XToolkit.
      $ AWT_TOOLKIT=XToolkit java TextAreaTest

      3. Press Ctrl+Space key to activate ATOK.

      4. Input some Japanese characters and keep them preedit.
         These characters are decorated as underline.

      5. Drag some underlined Japanese characters.
      => Selected characters are shown as black box. We cannot read them.

      If input characters are decorated as reversed and selected,
      they are not changed. We cannot tell they are selected or not.

      Swing Text components use blue for selecting and we can tell them.
      Also, Swing text can change colors, but AWT text cannot.

      This also occurs on 6.0 (b105).

      ----TextAreaTest.java----
      import java.awt.*;
      public class TextAreaTest extends TextArea {
              public TextAreaTest() {
                      super();
              }
              public static void main(String[] args) {
                      Frame frame = new Frame();
                      frame.add(new TextAreaTest());
                      frame.setSize(300, 100);
                      frame.setVisible(true);
              }
      }

      Attachments

        Issue Links

          Activity

            People

              yan Yuri Nesterenko
              elarsen Erik Larsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:
                Indexed: