1

this is my text pane look like: enter image description here

I want to be look like this: enter image description here

How can i set the tab size of JTextPane?

user3276091
  • 263
  • 3
  • 10
  • [here's the answer.](http://stackoverflow.com/questions/757692/how-do-you-set-the-tab-size-in-a-jeditorpane) – hoefling Oct 01 '14 at 22:24
  • @Mr.Yetti thanks for the link but it only cared for the first tab. I want to do is when i press tab in create white space , maybe 4 spaces. – user3276091 Oct 01 '14 at 23:02
  • 1
    The point is that when customizing `JEditorPane`/`JTextPane`s, you have to touch the underlying document. If you want to convert tabs into spaces, [try this one.](http://stackoverflow.com/questions/363784/setting-the-tab-policy-in-swings-jtextpane) – hoefling Oct 01 '14 at 23:22

0 Answers0