Indentation « JTextPane « Java Swing Q&A





1. JTextPane indentation    stackoverflow.com

Is there a way to indent a block of text in a JTextPane?


import javax.swing.*;
import java.awt.*;
import javax.swing.text.StyledDocument;

public class SimpleTextPane {

    public static void main(String... args){
     ...

2. Indentation not possible in JTextPane?    java-forums.org

Hello, Since you could help me so well last time I bring up a new problem of mine here. In my IDE-Editor I use a JTextPane. When selecting multiple lines and press tab afterwards, they all are replaced for a tabulator. But thats not supposed to happen. What I would like to happen is that every selected line indents. How can ...