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

win32: ACTION events not delivered to Frame's handleEvent method

XMLWordPrintable

    • generic
    • solaris_10

       For some reason it appears that ACTION events are not being properly delivered
      to handleEvent (1.0 compatibility mode) on win32 only.

      To reproduce:

      cd /home/aim/JavaTest/EventCompat
      java RunCalc

      You'll notice that:

      a) pressing the calculator buttons does not work
      b) if you press a button without releasing it, it will not remain
         pressed-in, it will act as though the moues button was released
         right-away

      The program has a handleEvent method on the frame which looks for
      ACTION events on the buttons -- putting a print statement in handleEvent
      shows that the action events are just not showing up at all.

      The strange thing is that this works fine on Solaris.

      [aim 12/12/96]
      Tracking it down further...

      The action events are not being delivered to the EventQueue at all.
      When I comment out the line which creates the TextField in the program,
      the action events are suddenly delivered properly and the buttons function
      fine (ignoring the NullPointerExceptions thrown because of the null TextField).
      So this seems something to do with having the TextField present.

            amfowler Anne Fowler (Inactive)
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: