catch (InterruptedException ignored) {  }
finally {  lp.remove(modalInterceptor);    Container parent = f.getParent(); if (parent != null) parent.remove(f);
  private static void startModal(JInternalFrame f)  {    synchronized (f)      {	final JInternalFrame tmp = f;	tmp.toFront();	f.addInternalFrameListener(new InternalFrameAdapter()	    {	      public void internalFrameClosed(InternalFrameEvent e)	      {		synchronized (tmp)		  {		    tmp.removeInternalFrameListener(this);		    tmp.notifyAll();		  }	      }	    });	try	  {	    while (! f.isClosed())	      f.wait();	  }	catch (InterruptedException ignored)	  {          // Ignore this Exception.	  }      }  }