Ola, tenho um JEditorPane, e gostaria de saber como faço para editar o meu texto selecionado dentro dele podendo atribuir
1 - Negrito
2 - Italico
3 - Sublinhado
4 - Alinhamento a esquerda
5 - Alinhamento a direita
6 - Texto centralizado
7 - Texto justificado
9 - Tamanho da fonte
10 - Tipo da fonte
// RTFEditorKit rtfEditor
this.rtfEditor = new RTFEditorKit();
// JEditorPane editorPanePrincipal
this.editorPanePrincipal = new JEditorPane();
this.editorPanePrincipal.setEditorKit(this.rtfEditor);
// JScrollPane scrollPanePrincipal
this.scrollPanePrincipal = new JScrollPane();
this.scrollPanePrincipal.setBounds(20, 60, 830, 340);
this.scrollPanePrincipal.getViewport().add(this.editorPanePrincipal);
this.panelPrincipal.add(this.scrollPanePrincipal);
TODA ou QUALQUER ajuda é bem vinda.
Grato.