Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alignment problem in JTextPane

 
Nagurva Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai all...
StyleContext.NamedStyle styleMap = styleContext.new NamedStyle();
StyleConstants.setAlignment(styleMap,StyleConstants.ALIGN_JUSTIFIED);
textPane.setParagraphAttributes(styleMap, true);

Here i am setting Justification for my text pane,but it is not working ,it is working like ALIGN_CENTER.

Thanks
Nagu
------------------
Nagurva
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic