styleSheet.importStyleSheet(getClass().getResource(DEFAULT_CSS));
InputStream in = getClass().getResourceAsStream(DEFAULT_CSS); InputStreamReader r = new InputStreamReader(in); styleSheet.loadRules(r,  null); r.close(); } catch (IOException ex) {  }
  public StyleSheet getStyleSheet()  {    if (styleSheet == null)      {      styleSheet = new StyleSheet();        styleSheet.importStyleSheet(getClass().getResource(DEFAULT_CSS));      }    return styleSheet;  }