File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTextPane Aligment Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTextPane Aligment" Watch "JTextPane Aligment" New topic
Author

JTextPane Aligment

RAJEEV BAHL
Greenhorn

Joined: Apr 26, 2001
Posts: 15
I am able to change attributes to JTextPane but unable to align the text. I used DefaultStyledDocument during creation of JTextPane and uses insertString method as explained in usage of TextCmponents at sun site. I used setPreferredSize() method of JTextPane.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JTextPane Aligment
 
Similar Threads
How to retrieve an icon from JTextPane ??
Retrieving components inserted into a JTextPane
JTextPane.setPage() is so slow when the target page is huge
Cursor in JTextPane
JTextPane viewable area