I am using a third party java library which spawns new JFrame windows. How do I make java.awt.Robot to send clicks and keyboard inputs to that specific window when it appears? I would run it in a separate thread so that other activities could be performed on the main application while robot is sending inputs to the specific JFrame window.
Note, I don't have api access to the process which spawns this JFrame window.
Currently, when the that JFrame window is minimized or closed, the robot will continue sending inputs to whatever current JFrame window is visible.