From 0c494c42311217a8c74e6653b22c0a2bc95dd8be Mon Sep 17 00:00:00 2001 From: hzzz Date: Wed, 2 Aug 2017 15:44:31 +0800 Subject: [PATCH] grid column and row background --- designer/src/com/fr/grid/GridColumnUI.java | 2 +- designer/src/com/fr/grid/GridRowUI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/designer/src/com/fr/grid/GridColumnUI.java b/designer/src/com/fr/grid/GridColumnUI.java index 748a0d2b8..ca5909420 100644 --- a/designer/src/com/fr/grid/GridColumnUI.java +++ b/designer/src/com/fr/grid/GridColumnUI.java @@ -70,7 +70,7 @@ public class GridColumnUI extends ComponentUI { if (gridColumn.getBackground() != null) { g2d.setPaint(this.withoutDetailsBackground); GraphHelper.fill(g2d, new Rectangle2D.Double(0, 0, columnLeftWidth, size.getHeight())); - g2d.setPaint(gridColumn.getBackground()); + g2d.setPaint(Color.white); GraphHelper.fill(g2d, new Rectangle2D.Double(columnLeftWidth, 0, size.getWidth() - columnLeftWidth, size.getHeight())); } // draw left border line. diff --git a/designer/src/com/fr/grid/GridRowUI.java b/designer/src/com/fr/grid/GridRowUI.java index 5a6b874cd..960cd0861 100644 --- a/designer/src/com/fr/grid/GridRowUI.java +++ b/designer/src/com/fr/grid/GridRowUI.java @@ -69,7 +69,7 @@ public class GridRowUI extends ComponentUI { if (gridRow.getBackground() != null) { g2d.setPaint(this.detailsBackground); GraphHelper.fill(g2d, new Rectangle2D.Double(0, 0, size.getWidth(), rowTopHeight)); - g2d.setPaint(gridRow.getBackground()); + g2d.setPaint(Color.white); GraphHelper.fill(g2d, new Rectangle2D.Double(0, rowTopHeight, size.getHeight(), size.getHeight() - rowTopHeight)); } // draw top border line.