List of usage examples for javax.swing.text.html StyleSheet addStyleSheet
public void addStyleSheet(StyleSheet ss)
ss to those of the receiver. From source file:com.hexidec.ekit.component.ExtendedHTMLEditorKit.java
public Document createDefaultDocument() { StyleSheet styles = getStyleSheet(); StyleSheet ss = new StyleSheet(); ss.addStyleSheet(styles); ExtendedHTMLDocument doc = new ExtendedHTMLDocument(ss); doc.setParser(getParser());//from www .j a v a2 s.co m doc.setAsynchronousLoadPriority(4); doc.setTokenThreshold(100); return doc; }
From source file:org.pmedv.core.components.ExtendedHTMLEditorKit.java
/** * creates a default document and sets the base url to the given value. * @param baseUrl creates the default document and sets the base url * of the html-document to the given value. if base url is null, * no base url will be set.// www . j ava2 s . co m * @return returns a Document */ public Document createDefaultDocument(URL baseUrl) { StyleSheet styles = getStyleSheet(); StyleSheet ss = new StyleSheet(); ss.addStyleSheet(styles); ExtendedHTMLDocument doc = new ExtendedHTMLDocument(ss); if (baseUrl != null) doc.setBase(baseUrl); doc.setParser(getParser()); doc.setAsynchronousLoadPriority(4); doc.setTokenThreshold(100); return doc; }