Search:

Type: Posts; User: Darryl.Burke

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    5,039

    Re: Setting tab size for JEditorPane

    JTextPane extends JEditorPane and can have a StyledDocument. And as far as I can make out, it's the document, not the editor kit, that is to be manipulated.

    db
  2. Replies
    5
    Views
    5,039

    Re: Setting tab size for JEditorPane

    You need to set the tab stops to the document, not the view.

    Related classes/methods:
    DefaultStyledDocument (Java Platform SE 6)
    StyleConstants (Java Platform SE 6)
    TabSet (Java Platform SE 6)...
Results 1 to 2 of 2