public void closeAllGraphArrayWindows() { while (true) { NthGraphArrayWindowMatcher matcher = new NthGraphArrayWindowMatcher(0); FrameFixture window = getWindowIfItExists(matcher); if (window == null) { return; } window.moveToFront(); window.focus(); window.close(); } }