-
Bug
-
Resolution: Fixed
-
P3
-
6u7
-
b03
-
x86
-
windows_vista
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2172959 | 7 | Dmitry Cherepanov | P3 | Closed | Fixed | b55 |
Bug 6524352 support for high-resolution mouse wheel has been fixed in case that the MouseWheelListener is attached to a Frame or JFrame.
However, if the MouseWheelListener is tied to an AWT panel, the issue persists:
import java.awt.event.MouseWheelListener;
import java.awt.event.MouseWheelEvent;
//import javax.swing.*;
import java.awt.*;
public class Jmouse2 extends Frame {
public Jmouse2() {
super("Jmouse2");
this.setLayout(new BorderLayout());
Panel ds_pnl = new Panel();
ds_pnl.setBackground(Color.green);
this.add(ds_pnl, BorderLayout.CENTER);
ds_pnl.addMouseWheelListener(new MouseWheelListener() {
public void mouseWheelMoved(MouseWheelEvent e) {
System.out.println(e);
}
});
}
public static void main(String[] args) {
Jmouse2 ms = new Jmouse2();
ms.setVisible(true);
}
}
However, if the MouseWheelListener is tied to an AWT panel, the issue persists:
import java.awt.event.MouseWheelListener;
import java.awt.event.MouseWheelEvent;
//import javax.swing.*;
import java.awt.*;
public class Jmouse2 extends Frame {
public Jmouse2() {
super("Jmouse2");
this.setLayout(new BorderLayout());
Panel ds_pnl = new Panel();
ds_pnl.setBackground(Color.green);
this.add(ds_pnl, BorderLayout.CENTER);
ds_pnl.addMouseWheelListener(new MouseWheelListener() {
public void mouseWheelMoved(MouseWheelEvent e) {
System.out.println(e);
}
});
}
public static void main(String[] args) {
Jmouse2 ms = new Jmouse2();
ms.setVisible(true);
}
}
- backported by
-
JDK-2172959 Support for high resolution mouse wheel is still incomplete. AWT panel needs to be supported
-
- Closed
-
- relates to
-
JDK-6803452 High-resolution mouse wheel: counter is shared between all LW components from the same HW component
-
- Open
-
-
JDK-6524352 support for high-resolution mouse wheel
-
- Closed
-