335336337338339340341342343344345
if (parent.isDisposed()) return; final Rectangle clientArea = parent.getClientArea(); EventQueue.invokeLater(new Runnable () { public void run () { frame.setSize (clientArea.width, clientArea.height); frame.validate (); } }); } }); return frame;