Grid - Custom Cell Border / Width [message #17948] |
Tue, 28 November 2006 16:08  |
Eclipse User |
|
|
|
Originally posted by: x_naren.hotmail.com
How to set Grid Cell Border Color / width / Height / Font?
basically a cell with custom properties? or custom cell
Naren
|
|
|
|
|
Re: Grid - Custom Cell Border / Width [message #18668 is a reply to message #18089] |
Thu, 30 November 2006 10:56  |
Eclipse User |
|
|
|
There is currently no way to change the line color, line width or cell
height without writing a custom cell renderer.
There isn't any special examples for cell renderers other than the code
for the default grid cell renderer in CVS. Sorry.
-Chris
Naren wrote:
> Thanks Chris,
>
> I should have been more specific.
>
> I was not referring to cell background/foreground colors, but I was
> referring towards cell BORDER colors/border line width and cell height.
>
> Also, is there an example for setcellrenderer?
>
> Thanks
>
> Naren
>
> Chris Gross wrote:
>
>> Have you read the javadoc? GridItem#setBackground,
>> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...
>
>> You can completely control the rendering of the cell by implementing
>> your own cell renderer using GridColumn#setCellRenderer, but its as
>> simple as it may appear.
>
>> -Chris
>
>> Naren wrote:
>>> How to set Grid Cell Border Color / width / Height / Font? basically
>>> a cell with custom properties? or custom cell
>>>
>>> Naren
>>>
>
>
|
|
|
Re: Grid - Custom Cell Border / Width [message #569728 is a reply to message #17948] |
Tue, 28 November 2006 16:55  |
Eclipse User |
|
|
|
Have you read the javadoc? GridItem#setBackground,
GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...
You can completely control the rendering of the cell by implementing
your own cell renderer using GridColumn#setCellRenderer, but its as
simple as it may appear.
-Chris
Naren wrote:
> How to set Grid Cell Border Color / width / Height / Font? basically a
> cell with custom properties? or custom cell
>
> Naren
>
|
|
|
Re: Grid - Custom Cell Border / Width [message #570053 is a reply to message #17976] |
Thu, 30 November 2006 10:48  |
Eclipse User |
|
|
|
Thanks Chris,
I should have been more specific.
I was not referring to cell background/foreground colors, but I was
referring towards cell BORDER colors/border line width and cell height.
Also, is there an example for setcellrenderer?
Thanks
Naren
Chris Gross wrote:
> Have you read the javadoc? GridItem#setBackground,
> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...
> You can completely control the rendering of the cell by implementing
> your own cell renderer using GridColumn#setCellRenderer, but its as
> simple as it may appear.
> -Chris
> Naren wrote:
>> How to set Grid Cell Border Color / width / Height / Font? basically a
>> cell with custom properties? or custom cell
>>
>> Naren
>>
|
|
|
Re: Grid - Custom Cell Border / Width [message #570257 is a reply to message #18089] |
Thu, 30 November 2006 10:56  |
Eclipse User |
|
|
|
There is currently no way to change the line color, line width or cell
height without writing a custom cell renderer.
There isn't any special examples for cell renderers other than the code
for the default grid cell renderer in CVS. Sorry.
-Chris
Naren wrote:
> Thanks Chris,
>
> I should have been more specific.
>
> I was not referring to cell background/foreground colors, but I was
> referring towards cell BORDER colors/border line width and cell height.
>
> Also, is there an example for setcellrenderer?
>
> Thanks
>
> Naren
>
> Chris Gross wrote:
>
>> Have you read the javadoc? GridItem#setBackground,
>> GridItem#setForeground, GridItem#setFont, GridColumn#setWidth...
>
>> You can completely control the rendering of the cell by implementing
>> your own cell renderer using GridColumn#setCellRenderer, but its as
>> simple as it may appear.
>
>> -Chris
>
>> Naren wrote:
>>> How to set Grid Cell Border Color / width / Height / Font? basically
>>> a cell with custom properties? or custom cell
>>>
>>> Naren
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05637 seconds