[here's the answer.](http://stackoverflow.com/questions/757692/how-do-you-set-the-tab-size-in-a-jeditorpane)
– hoeflingOct 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.
– user3276091Oct 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)
– hoeflingOct 01 '14 at 23:22