Hello
We still can?t find the source of the problem. We have made the change again
to the old visad release and it worked (the emulation) but the new still
doesn?t.
All this without any change in the class that uses it. We are using a two
button mouse,
jdk 1.4.0 and Windows 2000. When we made a :
System.out.println(""+e);
in the displayChanged(DisplayEvent e)
and the output shows that is not detecting a simultaneous click but a
separate one (new release of visad).
Output:
DisplayEvent: Display=display0, Id=FRAME_DONE, X=0, Y=0, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_PRESSED, X=202, Y=240, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_PRESSED_RIGHT, X=202, Y=240,
remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_PRESSED, X=202, Y=240, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_PRESSED_LEFT, X=202, Y=240,
remoteId=0
DisplayEvent: Display=display0, Id=FRAME_DONE, X=0, Y=0, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_RELEASED, X=202, Y=240, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_RELEASED_LEFT, X=202, Y=240,
remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_RELEASED, X=202, Y=240, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_RELEASED_RIGHT, X=202, Y=240,
remoteId=0
DisplayEvent: Display=display0, Id=FRAME_DONE, X=0, Y=0, remoteId=0
Using a 3 button mouse and using the central button (and the new release
of visad)
the output is as follows:
DisplayEvent: Display=display0, Id=MOUSE_PRESSED, X=210, Y=248, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_PRESSED_CENTER, X=210, Y=248,
remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_RELEASED, X=210, Y=249, remoteId=0
DisplayEvent: Display=display0, Id=MOUSE_RELEASED_CENTER, X=210, Y=249,
remoteId=0
DisplayEvent: Display=display0, Id=FRAME_DONE, X=0, Y=0, remoteId=0
Another important detail is that when we use the two button mouse to
emulate the central click the values
of the domain set appear on the superior left corner of the display
(latitude and longitude)
but the event fired to the displayChanged is not the central click.
Thanks again,
Andres David Acero M.
Universidad Nacional de Colombia Medell?n
HidroSIGJava Programmer
Hi Andres,
We have changed the visad release recently. And when we did it the
emulation of the central button by pressing both buttons on the mouse
stopped working. It may be a driver problem or have you changed it
lately. If you haven?t would you be interested in the details of the
circunstances?
I just tried clicking the left and right buttons to
emulate the center button, with the latest release,
and it worked OK for me. Perhaps as you suggest you
have a driver problem.
Good luck,
Bill