Dies ist eine alte Version des Dokuments!
StyleSheet
JTextPane textPane; StyleSheet css = new StyleSheet(); css.addRule("P { margin : 0; font-family : Arial, sans-serif; font-size : 11px; font-style : normal; }"); ((HTMLEditorKit)textPane.getEditorKit()).setStyleSheet(css);