Skip to Main Content

Java SE (Java Platform, Standard Edition)

JTable - right align in cell even if the text is wider than the cell

843804Jun 9 2005 — edited Jun 10 2005
Hello!

I want to display text in cells right aligned. When the size of the cell is smaller than the text, the text will be automatically left aligned. E.g:

e.g. text is abcdefgh

|abcd...|

i am interested in right alignment even if the size of the text is bigger than the cell it contains, because the relevant information stands on the right hand side of every entry.
E.g:

|...fgh|

or something like that.

thnx!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2005
Added on Jun 9 2005
4 comments
1,642 views