| || |
JFrame focus check in Robotj
User Lucas Waechter (email@example.com) posted:
I´m reading the posts for about 2 weeks and now i´m having trouble to design
a script for robotj.
I have to test if a Java program window (JFrame) has "focus" or is active.
something like the setContext in Robot, but the return value must be binary
(True/False). Using the function hasFocus() didnt worked. I also tryed the
function getProperty("focus") but not worked too. Anyone know what to do??
CPTS - Software Test Research Center
Convênio PUCRS - Hewlett-Packard Brasil
Porto Alegre - RS - Brasil