I’m doing some work making a Java app compatible with alternative input devices. Unfortunately, the device in question has a Java API that’s barely into the alpha stages right now, so it’s pretty poor. What I need to do is essentially set up a replacement structure for the dispatch of MouseEvents. Does anyone know if there’s a way in Swing to take a screen coordinate and find out what Swing component is displayed on top at that screen point?
I’m doing some work making a Java app compatible with alternative input devices. Unfortunately,
Share
In AWT Container, call this …
i.e. If it is in a GlassPane…
Reading your question, this might be of help to you also…
If you want to exercise the control use this …
Java.awt.Robot class is used to take the control of mouse and keyboard. Once you get the control, you can do any type of operation related to mouse and keyboard through your java code. This class is used generally for test automation.