<Swing Dev> [9] RFR JDK-8159068:The rendering of JTable is broken
prasanta sadhukhan
prasanta.sadhukhan at oracle.com
Mon Jun 13 07:21:27 UTC 2016
Hi All,
Please review a fix for jdk9 where it was seen that if we try to select
some rows in a JTable, the text painted in the rows goes missing.
Bug: https://bugs.openjdk.java.net/browse/JDK-8159068
webrev: http://cr.openjdk.java.net/~psadhukhan/8159068/webrev.00/
The issue was rMax value was decremented wrongly so when paintCells() is
called with wrong rMax, some rows were not printed correctly.
Fix is to make sure rmax is decremented properly, only when we are
trying to print whole visible portion of JTable and NOT when some rows
are being painted.
Regarding the regression testcase, I could not make it automated as the
failure happens on random iteration.
and also, getting selection background/foreground was giving same values
with and without the missing text.
Regards
Prasanat
More information about the swing-dev
mailing list