Skip to content

Commit e41fe46

Browse files
hansonrhansonr
authored andcommitted
JTable backgrounds restored
1 parent a5144dc commit e41fe46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3608,9 +3608,9 @@ public void paintBackground(JSGraphics2D g) {
36083608
if (!paintsSelf)
36093609
setBackgroundDOM(domNode, color);
36103610
// preliminary -- DOM only, when the background is set
3611-
} else if (allowPaintedBackground && (isOpaque && jc.getComponentCount() > 0 || jc.秘g != null)) {
3611+
} else if (allowPaintedBackground && (isOpaque && (cellComponent != null || jc.getComponentCount() > 0) || jc.秘g != null)) {
36123612
// all opaque components must paint their background
3613-
// just in case they have painted CHILDREN
3613+
// just in case they have painted CHILDREN or if they are table cell components
36143614
if (isOpaque == (color.getAlpha() == 255)) {
36153615
g.setBackground(color);
36163616
} else {

0 commit comments

Comments
 (0)