Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Text Alignment Question  RSS feed

 
Jeff Smith
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need some help here. I'm trying to align the text in my JTextPane so that it's fully justified (has even left and right margins). I found the following code online:

The problem is that this sets the text as CENTER justified and I have no idea why? Can anyone tell me how to get my text fully justified?
Thanks,
Jeff
[ January 28, 2003: Message edited by: Jeff Smith ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!