Esempio n. 1
0
  public StyledHTMLEditorPane() {
    this.setContentType("text/html");

    this.document = (HTMLDocument) this.getDocument();

    this.setDocument(document);

    Constants.loadSimpleStyle(document.getStyleSheet());
  }
Esempio n. 2
0
 protected StyleSheet getStyleSheet() {
   HTMLDocument doc = (HTMLDocument) getDocument();
   return doc.getStyleSheet();
 }