I am using Java to open a window application. i need to open it in a specified size. Please let me know how to do this...Thanks in advance...
- Vatz
- Vatz
public class YourClass {
public static void main(String[] myArgs) {
final String[] theirArgs= myArgs;
try {
SwingUtilities.invokeAndWait(new Runnable() {
public void run() { OtherApplication.main(theirArgs);
});
thread.sleep(SOME_TIME);
} catch { e.printStackTrace(); }
Frame[] frames= Frame.getFrames();
// play with the frames array ...
}
}
Comment