Browse Source

grid column and row background

master
hzzz 7 years ago
parent
commit
0c494c4231
  1. 2
      designer/src/com/fr/grid/GridColumnUI.java
  2. 2
      designer/src/com/fr/grid/GridRowUI.java

2
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.

2
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.

Loading…
Cancel
Save