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

Alt button is hiding mouse wheel event

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows_xp

      Description

      If the user press Alt button then next mouse wheel events are missed. Try to reproduce it by following sample code:

      import javax.swing.JFrame;
      import java.awt.Container;
      import java.awt.event.MouseWheelListener;
      import java.awt.event.MouseWheelEvent;

      public class Test extends JFrame {
          public Test() {
              Container cp = getContentPane();
              cp.addMouseWheelListener(new MouseWheelListener(){
                  public void mouseWheelMoved(MouseWheelEvent e) {
                      System.out.println("Done");
                  }
              });

              setSize(100, 100);
              setVisible(true);
          }

          public static void main(String[] args) {
              new Test();
          }
      }

      When you start the program above and drag the mouse wheel then "Done" is printed on the Console any time you drag the mouse wheel. But once you press Alt button then nothig is printed when you drag mouse wheel again.

      The bug was reproduced in jdk6 b69.

      However when you press any key once more all the events are working afresh.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yan Yuri Nesterenko
              Reporter:
              ydanilev Yury Danilevich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: