private final synchronized void doWaitUntilStopped() { while (graphics != null) { try { wait(); } catch (InterruptedException ex) {  } }
private final void doWaitUntilStopped() { synchronized (initCloseLock) { while (graphics != null) { try { initCloseLock.wait(); } catch (InterruptedException ex) {  } } }
	private final synchronized void doWaitUntilStopped() {		while (graphics != null) {			try {				wait();			} catch (InterruptedException ex) {				// Ignore			}		}	}