posted 20 years ago
Taking advantage of the fact that DefaultTableCellRenderer extends JLabel.
One approach is creating as many renderers as alignments you need. For instance the renderer providing right one:
Then you could assign such instance to any TableColumn needing right alignment: aTableColumn.setRenderer(aRightTableCellRenderer)
[ March 02, 2004: Message edited by: Jose Botella ]
SCJP2. Please Indent your code using UBB Code