Hi Vlado,
Try setting an empty border on your cell renderer:
public class MyTableCellRenderer extends DefaultTableCellRenderer{
public IRendererComponent getTableCellRendererComponent(ULCTable table,
Object value, boolean isSelected, boolean hasFocus, int row) {
ULCLabel label =
(ULCLabel)super.getTableCellRendererComponent(table,
value, isSelected, hasFocus, row);
label.setBackground(Color.red);
label.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
return label;
}
}
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Vyvojava
>Sent: Thursday, August 23, 2007 10:10 AM
>To: [EMAIL PROTECTED]
>Subject: [ULC-developer] Table intercell spacing
>
>
>Hi,
>I need some help with a table presentation. When I set intercell spacing to
>Dimension (10, 0) to achieve a more readable presentation, the background
>color on a selected cell is not applied to this margin and it looks quite
>bad. Is there any way to get some space between the cells in the grid and
>still have continuous background color?
>Thanks.
>
>Vlado
>
>
>--------------------------------------------------------------------------
>Tato sprava a vsetky pripojene subory su doverne a urcene vyhradne osobam
>alebo organizaciam, ktorym boli adresovane. Ak ste dostali tento e-mail
>omylom, prosim, upovedomte Chemosvit, a.s. ([EMAIL PROTECTED]).
>
>This email and any files transmitted are confidential and intended
>solely for the use of the individual or entity to which they are
>addressed. If you have received this email in error, please notify
>Chemosvit, a.s. ([EMAIL PROTECTED]).
>-------------------------------------------------------------------
>--------
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer