Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable - right Justification of strings.

 
zoe goddard
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a JTable, with one of the columns set up to have a renderer that puts in a JLabel. The string is right justified within the label; this is what I want. The problem is when the width of the column is smaller than the length of the string, then the string appears left justified with the continuation dots on the right. I want the continuation dots on the left and to see the tail end of the string.
Any ideas on how to fix this?
Do I have to create my own label paint method? or is there something easier to do?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this to the swing forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!