• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextPane Aligment

 
RAJEEV BAHL
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic