I'd have to be more familur with the project to say for sure, but you may could use the below Java code in order to get you in the right direction...
This brings the current window to the front
self.focus();
This brings a different window to the front
WindowObject.focus();