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.
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.