-
Bug
-
Resolution: Fixed
-
P3
-
6, 7
-
b25
-
x86
-
windows_vista
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2149495 | 6u10 | Dmitry Cherepanov | P3 | Resolved | Fixed | b10 |
JDK-2163911 | 5.0u19 | Vladislav Karnaukhov | P3 | Resolved | Fixed | b01 |
JDK-2201076 | 1.4.2_19 | Vladislav Karnaukhov | P3 | Resolved | Fixed | b04 |
JDK-2163912 | 1.4.2_18-rev | Vladislav Karnaukhov | P3 | Resolved | Fixed | b05 |
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows Vista Ultimate Edition
Microsoft Windows [Version 6.0.6000]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Microsoft Wireless Optical Mouse 2.0
Logitech LX3 Optical Mouse (corded)
Microsoft IntelliPoint 6.1
A DESCRIPTION OF THE PROBLEM :
When using the mouse scroll wheel within AWT and Swing applications I get different behaviour when using different mice on my Windows Vista system.
When using a Microsoft Wireless Optical Mouse 2.0, mouse wheel scrolling does not work correctly. This occurs regardless of whether Microsoft IntelliPoint software is installed or not. The mouse wheel scrolling works fine in all other (non-Java) applications.
Switching the mouse to an alternative (in my case a Logitech LX3 Optical Mouse) and the mouse wheel scrolling works correctly in all AWT and Swing applications.
Using the following simple Swing application:
import java.awt.event.MouseWheelListener;
import java.awt.event.MouseWheelEvent;
import javax.swing.*;
public class MouseScroller extends JFrame {
public MouseScroller() {
super("Mouse Scroller");
addMouseWheelListener(new MouseWheelListener() {
public void mouseWheelMoved(MouseWheelEvent e) {
System.out.println(e);
}
});
}
public static void main(String[] args) {
MouseScroller ms = new MouseScroller();
ms.setVisible(true);
}
}
If using the scroll wheel while within the JFrame area I get the following output:
Microsoft Wireless Optical Mouse 2.,0:
java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(586,916),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=0] on frame0
Note that the wheelRotation property is always set to 0 regardless of whether I scroll the mouse wheel up or down.
Logitech LX3 Optical Mouse:
java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(131,129),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=-1] on frame0
java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(131,129),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=1] on frame0
The wheelRotation property is set to -1 or 1 as would be expected when I scroll the wheel first up then down.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows Vista Ultimate Edition
Microsoft Windows [Version 6.0.6000]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Microsoft Wireless Optical Mouse 2.0
Logitech LX3 Optical Mouse (corded)
Microsoft IntelliPoint 6.1
A DESCRIPTION OF THE PROBLEM :
When using the mouse scroll wheel within AWT and Swing applications I get different behaviour when using different mice on my Windows Vista system.
When using a Microsoft Wireless Optical Mouse 2.0, mouse wheel scrolling does not work correctly. This occurs regardless of whether Microsoft IntelliPoint software is installed or not. The mouse wheel scrolling works fine in all other (non-Java) applications.
Switching the mouse to an alternative (in my case a Logitech LX3 Optical Mouse) and the mouse wheel scrolling works correctly in all AWT and Swing applications.
Using the following simple Swing application:
import java.awt.event.MouseWheelListener;
import java.awt.event.MouseWheelEvent;
import javax.swing.*;
public class MouseScroller extends JFrame {
public MouseScroller() {
super("Mouse Scroller");
addMouseWheelListener(new MouseWheelListener() {
public void mouseWheelMoved(MouseWheelEvent e) {
System.out.println(e);
}
});
}
public static void main(String[] args) {
MouseScroller ms = new MouseScroller();
ms.setVisible(true);
}
}
If using the scroll wheel while within the JFrame area I get the following output:
Microsoft Wireless Optical Mouse 2.,0:
java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(586,916),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=0] on frame0
Note that the wheelRotation property is always set to 0 regardless of whether I scroll the mouse wheel up or down.
Logitech LX3 Optical Mouse:
java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(131,129),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=-1] on frame0
java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(131,129),absolute(0,0),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=16,wheelRotation=1] on frame0
The wheelRotation property is set to -1 or 1 as would be expected when I scroll the wheel first up then down.
REPRODUCIBILITY :
This bug can be reproduced always.
- backported by
-
JDK-2149495 support for high-resolution mouse wheel
-
- Resolved
-
-
JDK-2163911 support for high-resolution mouse wheel
-
- Resolved
-
-
JDK-2163912 support for high-resolution mouse wheel
-
- Resolved
-
-
JDK-2201076 support for high-resolution mouse wheel
-
- Resolved
-
- relates to
-
JDK-6730447 Support for high resolution mouse wheel is still incomplete. AWT panel needs to be supported
-
- Closed
-
-
JDK-8049533 SwingUtilities.convertMouseEvent misses MouseWheelEvent.preciseWheelRotation
-
- Resolved
-
(1 relates to)