if (logger.isLoggable(Level.FINEST)) { System.out.println("sucessfully parsed the lookandfeel.stylesheet:"); Iterator it = styleSheet.styles().iterator(); while (it.hasNext()) { Style style = (Style)it.next(); System.out.println("" + style); } }
    public StyleSheet getStyleSheet() {        if (styleSheet == null) {            styleSheet = new CSSStyleSheet();            try {                InputStream in = classLoader.getResourceAsStream(properties.getProperty("lookandfeel.stylesheet"));                ((CSSStyleSheet)styleSheet).read(in);            }            catch (Exception e) {                logger.log(Level.WARNING, null, e);            }        }        if (styleSheet == null) {            throw new RuntimeException("a stylsheet is required");        }        return styleSheet;    }