Right align cell values in JTable ?

U

Ulf Meinhardt

I would like to right align all values (not the headers) of column num 7 in a JTable.
Do I really need to install a DefaultTableCellRenderer?
I could imagine that there is a more easier solution similar to:

myJTable.getColumnNum(7).setRightAligned()

Ulf
 
R

Roland

I would like to right align all values (not the headers) of column num 7 in a JTable.
Do I really need to install a DefaultTableCellRenderer?
I could imagine that there is a more easier solution similar to:

myJTable.getColumnNum(7).setRightAligned()

Ulf
[Follow Up removed, original newsgroups reinstated]

Answer in c.l.j.beans

[Posting this to original newsgroups, to signal that at least one reply
has been sent; just to prevent the same situation with 20+ replies to
"How to list (from command line) all files in a "jar" archive ?" in
c.l.j.help]
--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top