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

Unexpected preedit text and candidate window remain on screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 5.0u3
    • client-libs

      OPERATING SYSTEM(S)
      Windows XP (Japanese)
      FULL JDK VERSION(S):
      >> java -version
      java version "1.5.0_03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
      Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode)
      DESCRIPTION:
      On Japanese Windows XP, Japanese preedit text and candidate window remain on the screen.
      Test instruction is as follows:
      1. Compile and run test program (AwtTextTest.java) on Japanese Windows XP
      2. Press "Show TextField" button
      3. TextField window is displayed, turn on Japanese IME
      4. Type "a" and press Space key twice to convert to Japanese characters
      5. At this moment, candidate window is displayed, then "Close" button on window frame
      6. Window is closed but preedit text and candidate window are remained on screen
      ==============================================================================
      import java.awt.*;
      import java.awt.event.*;
      class AwtTextTest extends Frame implements ActionListener {
        Dialog d;
        AwtTextTest() {
          Button btn = new Button("Show TextField");
          add(btn);
          btn.addActionListener(this);
        }
        public void actionPerformed(ActionEvent e) {
          d = new Dialog(this, true);
          d.add(new TextField(20));
          d.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
              d.dispose();
            }
          });
          d.pack();
          d.show();
        }
        public static void main(String[] args) {
          AwtTextTest f = new AwtTextTest();
          f.pack();
          f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
              System.exit(0);
            }
          });
          f.show();
        }
      }
      ==============================================================================
      ###@###.### 2005-05-13 15:23:46 GMT

            xlu Xiaobin Lu (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: