Skip to content

Commit a8116ce

Browse files
hansonrhansonr
authored andcommitted
forcing background on JPanel when no components
1 parent f0ecb32 commit a8116ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3730,7 +3730,7 @@ public void paintBackground(JSGraphics2D g) {
37303730
if (!paintsSelf)
37313731
setBackgroundDOM(domNode, color);
37323732
// preliminary -- DOM only, when the background is set
3733-
} else if (allowPaintedBackground && (isOpaque && (cellComponent != null || jc.getComponentCount() > 0) || jc.秘g != null)) {
3733+
} else if (allowPaintedBackground && (isOpaque && (isPanel || cellComponent != null || jc.getComponentCount() > 0) || jc.秘g != null)) {
37343734
// all opaque components must paint their background
37353735
// just in case they have painted CHILDREN or if they are table cell components
37363736
if (isOpaque == (color.getAlpha() == 255)) {

0 commit comments

Comments
 (0)