--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java Tue May 25 20:22:44 2010 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthTableUI.java Tue May 25 20:30:54 2010 +0400
@@ -361,12 +361,14 @@
cMax = table.getColumnCount()-1;
}
- // Paint the grid.
- paintGrid(context, g, rMin, rMax, cMin, cMax);
-
// Paint the cells.
paintCells(context, g, rMin, rMax, cMin, cMax);
+ // Paint the grid.
+ // it is important to paint the grid after the cells, otherwise the grid will be overpainted
+ // because in Synth cell renderers are likely to be opaque
+ paintGrid(context, g, rMin, rMax, cMin, cMax);
+
paintDropLines(context, g);
}