Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DefaultStyledDocument help!

 
Michael Couck
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to right justify some components in a DefaultStyledDocument. I have written some test code, below. If this code is run the text is justified to the right, where I need it (the test), but the labels are justified to the left, and I want them on the right. I know this is a very strange request, and I am sure there is some trick to it. It seems no one knows how to do this. If anyone has done this thing before, or can help I would be very gratefull!
Below is the test code if anyone is brave enough to attempt this.
Thanks!

Michael
 
Michael Couck
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the solution if anyone is wondering. This right justifies JLabels in a DefaultStyledDocument.

See ya
Michael
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic