Re: changing font and colours for a specific rows based on specific criteria
- From: "chandu" <gorantala@xxxxxxxxxx>
- Date: 20 Jun 2006 09:28:52 -0700
Anyone can pls give some examples. I am also facing same problem.
chiuwingsze@xxxxxxxxx wrote:
Hi,
I am trying to change the colour of a row depending on a value of one
cell of that row, so if i see a cell that matches the criteria, i would
want that entire row coloured red.
i wrote my own TableCellRanderer for that to check for matching
criteria:
....
if(value.equals("NEW") ){
foreground = Color.RED;
}
renderer.setForeground(foreground);
return renderer;
}
but all this does is to change that specific cell to red and not the
entire row.
Any help would be appreciated.
Regards
Venus
.
- Follow-Ups:
- References:
- changing font and colours for a specific rows based on specific criteria
- From: chiuwingsze
- changing font and colours for a specific rows based on specific criteria
- Prev by Date: How to anchor thinlet controls??
- Next by Date: Re: alternative row colors in JTree
- Previous by thread: changing font and colours for a specific rows based on specific criteria
- Next by thread: Re: changing font and colours for a specific rows based on specific criteria
- Index(es):
Relevant Pages
|