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

Components generating ActinEvent event does not respond when Textfield is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • deploy
    • sparc
    • solaris_2.5.1



      Name: el35337 Date: 08/18/2000


      I downloaded Solaris JPI 1.3 bits from the Sun JPI web page
      and encountered the problem I described above.

      The following demo tests (JDK) when running side the browser/JPI
      will duplicate the problem: DitherTest, SymbolTest (4323956 previously
      reported).

      On HPUX with the 1.3.0 beta 22 drop I was able to duplicate the problem
      with ArcTest, DitherTest, and SymbolTest. Note that Textfield, Button,
      MenuItem, and List all generate ActionEvent event. When Textfield
      component is removed from these test cases, these components respond
      properly.

      The previous hack in native.c can obsecure this problem.
      In native.c a checkPos handler is called when EnterWindow
      event occurs (XtAddEventHandler(w, EnterWindowMask, FALSE,
      (XtEventHandler) checkPos, 0);. To duplicate the problem
      you must not move out of the applet window when the applet
      is loaded. The hack appears to fix the symptom, but does
      not really fix the underline problem. It appears that
      Textfield component might be stealing event belonging to
      other components that also generate ActionEvent.

      I am not sure why ArcTest does not fail on Solaris, but
      on HPUX the three test cases all fail when the mouse
      sprite remains in the applet window right after the
      applet is downloaded. If the mouse sprite is moved
      outside the window and move back in, checkPos is called
      and these components begin to respond.
      (Review ID: 107687)
      ======================================================================

            duke J. Duke
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: