First of all, i set the JTextPane like this:
HTMLEditorKit editorKit = new HTMLEditorKit(); HTMLDocument document = (HTMLDocument) editorKit.createDefaultDoc
When you call textPane.setParagraphAttributes(aSet, false); it tries to apply line spacing to selection but nothing is selected
textPane.setParagraphAttributes(aSet, false);
Call it another way
document.setParagraphAttributes(0, document.getLength(), attr, replace);