Re: JTable and CellRenderer to change background colors



On 4/28/2005 at 8:09:38 AM, Christian wrote:

> Now how can I assign one renderer for each cell in my table or is
> there a more convenient way to change the background colors?

Override prepareCellRenderer(), get the component from the superclass, and
set the background color on the component.

--
Regards,

John McGrath
.



Relevant Pages

  • colorindex = xlnone on condition of month of year
    ... to Aug for example certain background colors which were colored in Jul will ... Dim rng As Range, cell As Range ... Dim ncol As Integer, lrow As Long ... 'Selection.Interior.ColorIndex = xlNone 'THIS STATEMENT DELETES ALL CELL ...
    (microsoft.public.excel.programming)
  • Re: colorindex = xlnone on condition of month of year
    ... Dim MyCell As Range ... >> to Aug for example certain background colors which were colored in Jul ... cell As Range ... >> Selection.Interior.ColorIndex = xlNone ...
    (microsoft.public.excel.programming)
  • Re: colorindex = xlnone on condition of month of year
    ... Dim MyCell ... > to Aug for example certain background colors which were colored in Jul ... cell As Range ... > Selection.Interior.ColorIndex = xlNone ...
    (microsoft.public.excel.programming)
  • Re: colorindex = xlnone on condition of month of year
    ... For Each MyCell In Range ... >>> to Aug for example certain background colors which were colored in Jul ... >>> Dim rng As Range, cell As Range ...
    (microsoft.public.excel.programming)
  • Re: Frontpage printing
    ... >background colors or some of the graphic file showing. ... >and have the background properties in the cell, ...
    (microsoft.public.frontpage)