I have a Java program that launches another Java application via ProcessBuilder. My program also retains a Process object after launching the other application.
ProcessBuilder launcher = new ProcessBuilder(argArray);
Process processHandle = launcher.start();
In my program, I have 'user preferences' where the user can specify the on-screen size and location of the other application that is being started. I need my program to be able to change the size and location of the other application's window in pixels, preferably without utilizing P/Invoke, as this is meant to be a cross-platform application. Does anyone know how to change a Process' window size and location programmatically in Java?