I want my JTextPane to insert spaces whenever I press Tab. Currently it inserts the tab character (ASCII 9).
Is there anyway to customize the tab policy of JTextPane (o
As far as I know, you'd have to catch key events, as you say. Depending on usage, you might also get away with waiting until the input is submitted, and changing tabs to spaces at that time.