Vote count:
0
I am writing a Java program, and I use in some part of the program a JTextpane. In this JTextpane I use tabs (\t) to make columns, something like:
txtpnMTrace = new JTextPane();
txtpnMTrace.setFont(new Font("Dialog", Font.PLAIN, 11));
doc = txtpnMTrace.getStyledDocument();
...
doc.insertString(doc.getLength(),value1+"\t"+value2+"\t"+value3+"\n", null);
...
I can see the values in columns at tab (\t) distance. The tab distance is always the same, and I want to change this distance to improve the look.
Do you know How Can I change the tab (\t) size in JTextPane?
Thanks in advance.
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire