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

Two frames competing focus with each other

    XMLWordPrintable

Details

    • 1.1.4
    • generic, x86
    • windows_95, windows_nt
    • Not verified

    Description

      On Win32:
      Use JWS 2.0, try to clone the editor which creates the new editor frame.
      Reapeat it several times, the two frames will compete the focus with each other so users will see two flicking frames.

      In JWS's editor frame, we try to reassign the input focus to the text area everytime the editor receives the input focus. What happened was when we try to clone the editor using the Frame's menu, it will create a new editor frame. In the new frame's show method, we also reassign the input focus to the text area of the new created frame. In the mean time, by closing the menu, the old frame also receives the input focus and tries to reassign it to its text area. Sometimes, because of the timing problem, the two frames will keep competing with each other because of timeing problem. (also the asynv messaging model in AWT)

      [resii, 4/2/97]
      Tom Ball has sent us the following fix to src/win32/sun/windows/awt_Frame.cpp:

      167c167
      < return mrDoDefault;
      ---
      > return mrConsume;

      This fixes the problem we're seeing!

      We have another problem that looks similar but is not fixed by this. Once we
      track it down, if it shows as a JDK problem, we'll file a new bug.

      Thanks Tom!

      Attachments

        Activity

          People

            tballsunw Tom Ball (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: