-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2.2
-
generic
-
generic
Name: krT82822 Date: 12/22/98
Run the following example, and resize the frame so you can click on the client region. Left-click then quickly right-click (and vice versa).
The clickCount returns ',1,2', but should return ',1,1'. The clickCount should reset when the mouse buttons change.
snippet example:
----------------------------------8<
import java.awt.*;
import java.awt.event.*;
public class MouseClicks {
public static void main(String[] args) {
Frame f = new Frame();
f.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent e) {
System.out.print("," + e.getClickCount());
}
});
f.show();
}
}
>8----------------------------------
(Review ID: 48255)
======================================================================