Identifying Swing component at a particular screen coordinate? (And manually dispatching MouseEvents

Posted by DVA on Stack Overflow See other posts from Stack Overflow or by DVA
Published on 2010-04-28T23:51:26Z Indexed on 2010/04/28 23:57 UTC
Read the original article Hit count: 200

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing