Refs #1377 Merge to trunk: [Desktop] Table & generated cells: sometimes odd / even row colors are messed up

This commit is contained in:
Yuriy Artamonov 2012-08-03 12:59:44 +00:00
parent ce751a3a03
commit 69d88407f0

View File

@ -187,7 +187,7 @@ public class DesktopTableCellEditor extends AbstractCellEditor implements TableC
} else {
jcomponent.setForeground(table.getForeground());
Color background = UIManager.getDefaults().getColor("Table:\"Table.cellRenderer\".background");
if (row % 2 == 0) {
if (row % 2 == 1) {
Color alternateColor = UIManager.getDefaults().getColor("Table.alternateRowColor");
if (alternateColor != null) {
background = alternateColor;