!747 m { static Window[] windows; p { windows = Window.getWindows(); print(windows.length + " window(s) found."); //print(structure(windows)); for (Window w : windows) { if (w instanceof JFrame) { JFrame f = cast w; print("Frame: " + quote(f.getTitle()) + ", position: " + f.getBounds() + ", visible: " + f.isVisible() + ", active: " + f.isActive()); } else print("Window: " + w.getClass().getName() + " [" + w.getBounds() + "], visible: " + w.isVisible() + ", active: " + w.isActive()); } } }