This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

right justify text in a JTable  RSS feed

 
jeff willis
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to right justify text in a JTable?

I've tried using Strings, JLabel, and even extending DefaultTableCellRenderer but all I ever get is left justified text.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
jeff willis
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks. Your response is very impressive. Complete, to-the-point, and "cut-and-pastable"!

It's exactly what I needed.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!