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

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

    this.setDocument(document);

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