Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTMLEditorKit editorKit = new HTMLEditorKit();
- HTMLDocument document = (HTMLDocument) editorKit.createDefaultDocument();
- JTextPane textPane = new JTextPane();
- textPane.setContentType("text/html");
- textPane.setDocument(document);
- SimpleAttributeSet aSet = new SimpleAttributeSet();
- StyleConstants.setLineSpacing(aSet, 50);
- textPane.setParagraphAttributes(aSet, false);
- document.setParagraphAttributes(0, document.getLength(), attr, replace);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement