sbool isVisibleWindow(Window w) { ret w != null && swing(-> w.isVisible()); }