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

mousePress(),mouseRelease() of java.awt.Robot are not working properly

XMLWordPrintable

    • rc3
    • x86
    • windows_nt
    • Not verified

        In Win32 Platforms
        mousePress(),mouseRelease() methods of java.awt.Robot are not working properly for Right mouse button on Win32 platforms.
                      1. mousePress(BUTTON3_MASK) triggers mouseReleased and
                        MouseClicked and not MousePressed.
                        2. mouseRelease(BUTTON3_MASK) triggers mouseReleased and
                        mouseClicked when mouse is not pressed at all.
                        This holds good for all the components.
                        This is not occuring in solaris.


        How to reproduce the Bug? -------->

        Run this sample code. You would see a frame with a TextArea.
        Wait for sometime. Robot will move the mouse to the center of the component and
        will click the right mouse button. Look into the command prompt for messages.
        If you dont find any message which denotes triggering of MousePressed , then
        bug is reproduced.
        NOTE: This bug occurs only in Windows and not in solaris.
        Message "ROBOT STOPPED" indicates termination of robot and you can try clicking
        the mouse buttons manually after that.


        sunitha.elango@eng 2000-04-14

              bchristi Brent Christian
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: