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

Right mouse button and BUTTON2/BUTTON3 association

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • None
    • generic
    • generic

      Javadoc for MouseEvent doesn't say which button (#2 or #3) is right mouse button. SwingUtilities assume that #3. Native code on Windows maps RBUTTON to BUTTON3, but SynthesizeMouseMessage maps BUTTON3 to MBUTTON. X11 code uses Xlib constants - Button3 is mapped to BUTTON3, but right button may be Button2 if there is no middle button.

      The code should be rewritten to consistently return BUTTON3 for right button, and also the Javadoc for getButton, BUTTON3/BUTTON2 should specify how these buttons are related to native equivalents
      ###@###.### 2005-1-18 10:56:29 GMT

            dav Andrei Dmitriev (Inactive)
            dmikhalksunw Denis Mikhalkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: