Hi all,
Would like my JTable to have a bit of space between certain (not all)
columns. This is to divide up the table columns visually into several
"groups". Say columns 0, 1 and 2 together as per usual with no additional
space in between them. Then some space between columns 2 and 3, so that
columns 3, 4 and 5 appear as though belong together, just as 0, 1 and 2 do.
Problem is, having used setColumnMargin() changed the space between the
column headers only. I am using custom renderers for some cells. Any ideas?
Thanks in advance!
Flo
ak - 30 Jan 2004 09:29 GMT
> Would like my JTable to have a bit of space between certain (not all)
> columns. This is to divide up the table columns visually into several
[quoted text clipped - 3 lines]
> Problem is, having used setColumnMargin() changed the space between the
> column headers only. I am using custom renderers for some cells. Any ideas?
unfortunately you can change column margin only for all columns in JTable.
You could try to insert empty column between columns 2 and 3.
____________
http://reader.imagero.com the best java image reader.
Flo - 31 Jan 2004 02:12 GMT
> > Would like my JTable to have a bit of space between certain (not all)
> > columns. This is to divide up the table columns visually into several
[quoted text clipped - 9 lines]
> You could try to insert empty column between columns 2 and 3.
> ____________
Ah...I did not know that. I was also thinking about changing the weight of
gridlines between the specific columns, but after reading your comment, I do
suspect that there will be a similar problem in that only all gridlines
together can be changed. Inserting an empty column and setting its width
very small (i.e. double grid lines) will divide the columns up visually. I
will go for that. Thanks ak.
Flo