public void removeAll(boolean dispose) { int k = windows.size(); if (k == 0) return; JFrame[] wIterator = new JFrame[k]; windows.keySet().toArray(wIterator);   for (k = 0; k < wIterator.length; ++k) remove(wIterator[k], dispose); }
public void removeAll() { removeAll(false); }
	public void removeAll(boolean dispose)	{		int k = windows.size();		if (k == 0) return;		JFrame[] wIterator = new JFrame[k];  		windows.keySet().toArray(wIterator);  		//NOTE: Using Iterator would cause a ConcurrentModificationException. 				for (k = 0; k < wIterator.length; ++k) 			remove(wIterator[k], dispose);	}