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

Robot.mousePress/Relase should also accept InputEvent.BUTTONx_DOWN_MASK

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b48
    • CPU:
      generic
    • OS:
      generic

      Description

      InputEvent spec :
      "public static final int BUTTON1_MASK
          The Mouse Button1 modifier constant. It is recommended that BUTTON1_DOWN_MASK be used instead."
      The same for other masks.

      That time java.awt.Robot.mousePress/Release() says:
      "public void mousePress(int buttons)
          Presses one or more mouse buttons. The mouse buttons should be released using the mouseRelease method.
          Parameters:
              buttons - the Button mask; a combination of one or more of these flags:
      >> * InputEvent.BUTTON1_MASK
      >> * InputEvent.BUTTON2_MASK
      >> * InputEvent.BUTTON3_MASK
      [skip]"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              dav Andrei Dmitriev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: