There was an error while loading. Please reload this page.
1 parent f0ecb32 commit a8116ceCopy full SHA for a8116ce
1 file changed
sources/net.sf.j2s.java.core/src/swingjs/plaf/JSComponentUI.java
@@ -3730,7 +3730,7 @@ public void paintBackground(JSGraphics2D g) {
3730
if (!paintsSelf)
3731
setBackgroundDOM(domNode, color);
3732
// preliminary -- DOM only, when the background is set
3733
- } else if (allowPaintedBackground && (isOpaque && (cellComponent != null || jc.getComponentCount() > 0) || jc.秘g != null)) {
+ } else if (allowPaintedBackground && (isOpaque && (isPanel || cellComponent != null || jc.getComponentCount() > 0) || jc.秘g != null)) {
3734
// all opaque components must paint their background
3735
// just in case they have painted CHILDREN or if they are table cell components
3736
if (isOpaque == (color.getAlpha() == 255)) {
0 commit comments