Hi !
I'm trying to align the names in my TableHeader to the left.
This works:
DefaultTableCellRenderer renderer = (DefaultTableCellRenderer)
table.getTableHeader().getDefaultRenderer();
renderer.setHorizontalAlignment(SwingConstants.LEFT);
Now I would like to set the border, so that the names move
a little bit to the right.
But this doesn't work:
Border border = new blabla...
renderer.setBorder(border);
Any ideas what's wrong with that ?
Roland
ak - 21 Dec 2003 19:04 GMT
> Now I would like to set the border, so that the names move
> a little bit to the right.
[quoted text clipped - 5 lines]
>
> Any ideas what's wrong with that ?
short sample could be helpful...
--
____________
http://reader.imagero.com the best java image reader.