if (!prop.load() || always) {  PropertiesDialog dialog = new PropertiesDialog(prop, imageFile);  while (!dialog.isDone()) { try { Thread.sleep(10); } catch (InterruptedException e) { LoggingSystem.getLoggingSystem().getLogger().log( Level.WARNING, "Error waiting for dialog system, using defaults."); } } }
    public static void createDisplaySystem(String title, String imageFile,             boolean always) {                        PropertiesIO prop = new PropertiesIO("properties.cfg");        if (!prop.load() || always) {            PropertiesDialog dialog = new PropertiesDialog(prop, imageFile);            while (!dialog.isDone()) {                try {                    Thread.sleep(10);                } catch (InterruptedException e) {                    LoggingSystem.getLoggingSystem().getLogger().log(                            Level.WARNING,                            "Error waiting for dialog system, using defaults.");                }            }        }        if (null == instance) {            instance =                new DisplaySystem(                    prop.getWidth(),                    prop.getHeight(),                    prop.getDepth(),                    prop.getFreq(),                    prop.getFullscreen(),                    title);        }    }