mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 10:17:43 +08:00
Refs #1377 Merge to trunk: [Desktop] Table & generated cells: sometimes odd / even row colors are messed up
This commit is contained in:
parent
ce751a3a03
commit
69d88407f0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user