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

Capture all keystrokes and mouse events of the system

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P5
    • None
    • 5.0
    • client-libs
    • x86
    • windows_xp

    Description

      A DESCRIPTION OF THE REQUEST :
      The package java.awt doesn't have any method to capture all input events of the system. That is, a method to register MouseListeners, KeyListeners, etc for events outside the JVM.

      A feature like that would make possible doing lots of interesting applications applications in conjunction with the existing java.awt.Robot.

      JUSTIFICATION :
      There are some kinds of application that could be possible to implement in conjunction with java.awt.Robot.

      - VNC server
      - applications like synergy2 at sourceforge
      - record user clicks for automated tests of GUI applications

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Some methods to register events of the whole system, including native aplications and other JVM. For example in the class java.awt.Robot methods like addMouseListener, addMouseMotionListener, addKeyListener, addWindowFocusListener, addWindowListener...

      The listener would receive the events of all the system. Maybe the source of the event cannot be a java.awt.Window or java.awt.Component.
      ACTUAL -
      Is not possible to register listeners for events outside the JVM (is only possible using JNI)

      CUSTOMER SUBMITTED WORKAROUND :
      Implement it using JNI.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: