[java] How to know which MouseButton was pressed

Started by
10 comments, last by Harvester 23 years, 7 months ago
2000-06-30
A MouseWheelListener was added to BasicScrollPaneUI. The listener code calls into BasicScrollBarUI to scroll the appropriate scrollbar.

This was the evaluation of one of the many ''bug'' reports on java not supportion wheel mice. The code has been commited to Merlin.
Advertisement
Just as a reply to anonymous'' post, he/she got me thinking if evt.isMetaDown() would be triggered with the ALT so I tried it and it doesn''t work.

It does register the rightclick.

Perhaps anon was thinking that the mac''s meta was similar to the PC''s ALT (granted I know jack about macs so I have no clue which buttons simulate what on where).

Smoo

This topic is closed to new replies.

Advertisement