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

Robot.mousePress/Relase should also accept InputEvent.BUTTONx_DOWN_MASK

XMLWordPrintable

    • b48
    • generic
    • generic

      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]"

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: