-
Enhancement
-
Resolution: Won't Fix
-
P5
-
None
-
5.0
-
x86
-
windows_xp
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.
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.