From: Timothy W. <tw...@us...> - 2008-01-19 19:18:56
|
On Jan 19, 2008, at 1:43 PM, Andrew Nelson wrote: > Hello all, > > I'm trying to create some code that wraps Abbot with a simple DSL. > It is working ok but I've run into a problem with JComponentTester > (Please see the attached test). > > This attached test passes find on my linux box running gnome, but > fails on my linux box running flux box. > > Am I using JComponentTester incorrectly or is this a bug? > > In fluxbox the actual recorded click is at 49,49. The bug is likely in the interaction between AWT and fluxbox. What JComponentTester does is obtain the location on screen of the component via Component.getLocationOnScreen(), then offset that coordinate by the component-relative point. You can perform the individual steps explicitly to see which information is incorrect (or whether asking for a robot event at screen coordinate 50, 50, actually generates an event in the wrong location. Timothy Wall http://abbot.sf.net |