CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: jTextPane

  1. #1
    Join Date
    Mar 2010
    Posts
    6

    jTextPane

    Hi all,

    I am new to the forum here and would like to say hi :-)

    For setting the indentation of text in jTextPane, what would be the preferred method of doing this?

    I would like to mimic the functionality in Word so you can set the indentation using a slider.

    Any pointers or tips will be greatly appreciated.

    Thanks :-)

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: jTextPane

    I imagine the StyledEditorKit.AlignmentAction is the class to use for this.

    Progress is possible only if we train ourselves to think about programs without thinking of them as pieces of executable code...
    E. Dijkstra
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured