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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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://aspose.com/file-tools
 
subject: JTextPane Aligment