• Post Reply Bookmark Topic Watch Topic
  • New Topic

justify???  RSS feed

 
Basanth P Rangadhol
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried to justify the text in JTextPane, using StyleConstants.Align_Justify
and textpane.setcharacterattributes(StyleConstants.Align_Justify)but it is similar to StyleConstants.Align_Center. please help...
 
Pritam Barhate
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is old bug(from 1999, since JDK 1.2) in SWING that is not fixed yet. See the details at official sun bug database. There is a bugfix here at sun's forum. But I haven't tested it.
 
Basanth P Rangadhol
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot... it helped me to fix the justification problem...
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!