Within the same java application, you can just call the toFront() method on a Window instance. However if you wish to try and control other applications, you are probably stuck using Runtime.exec()....