Why don't you use JNA, it gives you scores of options to play with windows... this is how you do it using JNA. download JNA.jar
HWND hwnd = User32.INSTANCE.FindWindow(null, nameOfWindow); // window title
User32.INSTANCE.ShowWindow(hwnd, 9); // SW_RESTORE
User32.INSTANCE.SetForegroundWindow(hwnd); // bring to front
Hope this helps...