EventQueueRunner eqRunner = new EventQueueRunner();
Window window = windowMonitor.getWindow(id.getTitle());
if (window instanceof JFrame) {
eqRunner.invoke(window, "setExtendedState", new Object[] { JFrame.NORMAL}, new Class[] {Integer.TYPE});
}
eqRunner.invoke(window, "setBounds", new Object[] { bounds }, new Class[] { Rectangle.class });
}
public String toScriptCode() {
return scriptModel.getScriptCodeForWindowState(id, state);
}