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

[VISTA] Unexpected composition window is displayed when the window is minimized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      **** Please note that the OS is Windows Vista, not Windows XP ****

      On Vista (Traditional Chinese) with CangJie IM or New CangJie IM,
      Unexpected IME composition window is displayed on peered component
      when the window is minimized.

      Please check following testcase:

      1. Compile and run attached testcase
      2. TextArea and Button window are displayed
      3. Turn on CangJie IM for both window
      4. Move input focus to TextArea window
      5. Move input focus to Button window and type "m".
         IME composition window may be displayed on right-bottom on screen
      6. Press Minimize button on Button window's frame.
         At this action, input focus is moved to TextArea
      7. IME composition window is displayed on TextArea.
         Type "a", but two IME composition windows are displayed
         for this action <=== PROBLEM

      Note: You may use non Traditional Chinese Vista, if you install
            Traditional Chinese CangJie IM into your Vista.
            (Please check step 3)

      ===========================================================
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;

      class MultiComponent {
        MultiComponent(Component comp, int x, int y, int width, int height) {
          Frame f = new Frame(comp.getClass().getName());
          f.add(comp);
          if (!(comp instanceof TextArea) && !(comp instanceof TextField)) {
            comp.addKeyListener(new KeyAdapter() {
              public void keyTyped(KeyEvent e) { System.out.println(e.toString()); }
            });
          }
          f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) { System.exit(0); }
          });
          f.setLocation(x,y);
          f.setSize(width,height);
          f.setVisible(true);
        }
        static public void main(String[] args) {
          new MultiComponent(new TextArea("TextArea"),0,0,200,100);
          new MultiComponent(new Button("Button"),200,0,200,100);
        }
      }
      ===========================================================

            nishjain Nishit Jain
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: