problem with editorkit-undo/redo
hello everyone,
i am creating simple text editor,in that i created text pane like this
Code:
final JTextPane jta;
jta = new JTextPane();
jta.setEditable(true);
final StyledDocument doc = jta.getStyledDocument();
final UndoManager manager = new UndoManager();
final RTFEditorKit kit = new RTFEditorKit();
jta.setEditorKit(kit);
but my problem is that undo/redo are not working if i set rtf editorkit
to the textpane,but without rtf-editorkit i cant save the document with font styles..
how can i manage these two and get them happen