Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6730447

Support for high resolution mouse wheel is still incomplete. AWT panel needs to be supported

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      x86
    • OS:
      windows_vista
    • Verification:
      Verified

      Backports

        Description

        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);
            }
        }

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dcherepanov Dmitry Cherepanov
                  Reporter:
                  tviessma Thomas Viessmann (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: