Java - AWT/Swing

StyleSheet

javax.swing.JTextPane
javax.swing.text.html.StyleSheet

JTextPane textPane;
StyleSheet css = new StyleSheet();
css.addRule("p {margin: 0; font-family: Arial, sans-serif; font-size: 12px; }");
((HTMLEditorKit)textPane.getEditorKit()).setStyleSheet(css);

Eigene Werkzeuge
Werkzeuge

gratis Counter by GOWEB
seit 9.10.2007