title: How do I remote control a GUI application?
body: <p>I can easily control a console based app with the input and output streams from Java's <code>Runtime.exec()</code> method. How would I control a GUI based application in the same manner. I have looked at the Robot class, but there is no way for me to control one application programmatically. Is there another Java library, or even another language's library that would allow me to spawn a GUI application and then be able to control that application?</p>