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

RFE: InputMethod status shows at wrong location on Cygwin X-Window

XMLWordPrintable

      Name: dk106046 Date: 04/26/2004

      OPERATING SYSTEM(S):
      Graphical Client:
        MS Windows 2000
        Cygwin/X version 4.3.0.67

      Java environment:
        SuSE SLES8 for IA32 and RedHat RHAS3 for IA32 with Japanese environment.

      FULL JDK VERSION(S):
      java version "1.4.2_03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


      InputMethod status shows at wrong location on Cygwin X-Window.
      We are using Cygwin X-Window on MS-Windows as graphical client, and
      it displays a Java application which is running on Linux via X protocol.

      1. Launch Cygwin environment on MS Windows, and start X-Window.
          $ startx

      2. Allow any graphical connection.
          $ xhost +

      3. telnet to Linux system.

      4. Set environmental values on Linux.
          $ export DISPLAY=<Cygwin/X system>:0
          $ export XMODIFIERS=@im=kinput2

      5. Launch kinput2 on Linux
          $ kinput2 -xim -canna &

      6. Compile and run the sample code, JTextAreaTest.
        
      7. Turn on kinput2 by pressing Shift+Space key.
      => IM status window shows at far from JTextAreaTest's window.
          It should appears just below the Java window.

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

      public class JTextAreaTest extends JTextArea {
              public JTextAreaTest() {
                      super();
              }
              public static void main(String[] args) {
                      JFrame frame = new JFrame("Swing JTextArea component");
                      frame.getContentPane().add(new JTextAreaTest());
                      frame.addWindowListener(new WindowAdapter() {
                              public void windowClosing(WindowEvent event) {
                                      System.exit(0);
                              }
                      });
                      frame.setSize(300, 300);
                      frame.show();
              }
      }
      ============================================================

      - Additional Information
      Cygwin/X environment doesn't have WindowManager window between
      Java's toplevel and rootwindow. That means a parent window of toplevel
      is rootwindow. It may cause of the problem.

      [This bug is being submitted as a courtesy, in order to maintain uniformity between Sun & IBM JDKs. It has been fixed in IBM JDKs.
      Please contact ###@###.### if you have questions.]
      ======================================================================
      ###@###.### 11/4/04 04:26 GMT

            naoto Naoto Sato
            dkorbel David Korbel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: