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

focus is not always restored properly when a window is activated

    XMLWordPrintable

Details

    • 1.1.5
    • x86
    • windows_95
    • Verified

    Description


      ingrid.yao@Eng 1997-08-06 Oracle bug#521288

      =======================================================
      BUG DESCRIPTION - you could access Oracle library under ~/Oracle/class/oracle/ewt
      ---------------

      Platform: Windows 95/NT
      Version: JAE 1.1.3FCS

      FOCUS IS NOT ALWAYS RESTORED PROPERLY WHEN A WINDOW IS ACTIVATED

      If a top level window is activated the focus is not set back to the correct
      lightweight Component if the previously active window is part of the same
      application.
      The problem occurs because when another top level window in the same
      application is activated, a FOCUS_LOST event is sent with isTemporary false
      when it should be true. This doesn't affect heavyweight Components because
      they ignore this flag.

      TEST CASE
      ---------
      import java.applet.*;
      import java.awt.*;
      import java.awt.event.*;
      public class b521288 extends Applet
      {
          private TestFrame _mFrame1;
          private TestFrame _mFrame2;
          public b521288()
          {
          }
          public void start()
          {
              _mFrame1 = new TestFrame("Frame 1");
              _mFrame2 = new TestFrame("Frame 2");
              _mFrame1.setBounds(100, 100, 300, 200);
              _mFrame2.setBounds(125, 125, 300, 200);
          }
      }
      class TestFrame extends Frame
      {
          private oracle.ewt.lwAWT.lwText.LWTextField _mTextField1;
          private oracle.ewt.lwAWT.lwText.LWTextField _mTextField2;
          TestFrame(String name)
          {
              super(name);
              _mTextField1 = new oracle.ewt.lwAWT.lwText.LWTextField();
              _mTextField2 = new oracle.ewt.lwAWT.lwText.LWTextField();
              setLayout(new FlowLayout());
              add(_mTextField1);
              add(_mTextField2);
              validate();
              setVisible(true);
          }
      }

      Attachments

        Activity

          People

            duke J. Duke
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: