There is no way to specify a background color for an individual row in a 
TableView. However, there are a couple of ways you could accomplish this:

1) Use a custom renderer for each cell, each of which is capable of displaying 
the appropriate background color when necessary.

2) Attach a decorator to the TableView that will paint the row background in 
its prepare() method. The decorator can get the bounds of the highlighted row 
and draw a rectangle of the appropriate color. For this to work, you'll need to 
ensure that the table view's background color and alternate row background 
color are is null.

G

On Nov 23, 2010, at 2:54 AM, MSafiri wrote:

> 
> Dear All,
> 
> I am looking for the possibility to change the background color of a table
> row. Found, that with a custom cell renderer it is possible to change one
> cell. Is there a similar possibility for a whole row?
> 
> What I need to achieve, is to change the color of the whole row, based on a
> value presented in one cell of the table.
> 
> I appreciate your help,
> 
> Regards,
> 
> MSafiri
> -- 
> View this message in context: 
> http://apache-pivot-users.399431.n3.nabble.com/How-to-change-the-background-of-a-Table-Row-tp1951917p1951917.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to