Hi Vlado,

A correction:

Instead of creating a new border for each renderer as shown below, you can
create the border once and share it across renderers. This is better from
performance point of view.

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Janak Mulani
>Sent: Wednesday, August 29, 2007 2:50 PM
>To: [email protected]
>Subject: RE: [ULC-developer] Table intercell spacing
>
>
>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

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to