public static boolean haveWindow(String name) {
        Widget root = UI.instance.root;
        for (Widget wdg = root.child; wdg != null; wdg = wdg.next) {
            if (wdg instanceof Window)
                if (((Window) wdg).cap != null
                        && ((Window) wdg).cap.text != null)
                    if (((Window) wdg).cap.text.equals(name)) {
                        return true;
                    }
        }// for
        return false;
    }