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

On MToolkit, cannot input any character on multi window environment

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_2.5.1

      Backports

        Description

        OPERATING SYSTEM(S):
        Red Hat Enterprise Linux 3 Update 8

        FULL JDK VERSION(S):
          java version "1.6.0-rc"
          Java(TM) SE Runtime Environment (build 1.6.0-rc-b96)
          Java HotSpot(TM) Client VM (build 1.6.0-rc-b96, mixed mode)


        DESCRIPTION:
        On Motf AWT(MToolkit), I cannot input any character on multi window environment.
        It seems focus related problem.
        It's not related locale or XIM server.

        Test instruction is as follows:
        1. Compile and run following program
        2. One of window may have input focus, type some characters
        3. Move input focus to the other window by using mouse, type some characters but nothing happen
        4. Move back input focus to the first window by using mouse, type some characters but also nothing happened

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

        class MultiFrame {
          MultiFrame(int x, int y) {
            JFrame frame = new JFrame("FrameTest");
            Container c = frame.getContentPane();
            c.setLayout(new GridLayout(1,0));
            c.add(new JTextArea());
            frame.setSize(200,100);
            frame.setLocation(x,y);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
          }
          public static void main(String[] args) {
            System.setProperty("awt.toolkit","sun.awt.motif.MToolkit");
            MultiFrame f1 = new MultiFrame(0,0);
            MultiFrame f2 = new MultiFrame(200,0);
          }
        }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ant Anton Tarasov
                  Reporter:
                  elarsen Erik Larsen (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: