Hello,
I'd like to report what I consider a bug in AWT event handling:
Create a Canvas and enable MouseEvents for it. Clicking on this canvas
delivers
three MouseEvents to the method processMouseEvent: one for MOUSE_DOWN,
one for
MOUSE_RELEASED, and one for MOUSE_CLICKED. The getModifiers() method of
these
events returns an int which stands for e.g. the mouse button you used.
If you use
button 1 the modifier of the MOUSE_DOWN is 0 whereas the modifiers of
MOUSE_RELEASED and MOUSE_CLICKED is 16 (which is correct for
BUTTON1_MASK). If
you use button 2 or 3 all modifiers have the correct value. This happens
with version 1.1.5v_5 and 1.1.6_v1,
with fvwm2 and KDE Beta 4
My system is a SuSE Linux 5.2 (Xfree 3.3.2-2, libc 5.44.4)
This bug does not exist in e.g. JDK 1.1.4 for OS/2 (Sorry, that's the
only comparison
I have).
I have attached a zip file to this mail which contains a small program
to reproduce
this behaviour. It just creates a Canvas and prints a String for each
event to
System.out.
A second minor annoyance is that the title of a Frame is not set
correctly
when using KDE Beta 4 and java 1.1.6_v1. You can see this with the
attached program. Using 1.1.5 the title is "AWTBug" as set in the code,
using 1.1.6_v1 it is "AWTapp". This works correctly when using fvwm2.
If anybody knows a workaround for the first problem please tell me how
to do it.
Thanks,
Stefan Poppe
P.S.
I just checked your web page and found that there's already 1.1.6_v2
which should
contain a fix for the second problem. I'll download and check if the
first still
exists.
--
Stefan Poppe
[EMAIL PROTECTED]
AWTBug.zip