<Swing Dev> RFR: [JDK-8081491] The case print incomplete.

prasanta sadhukhan prasanta.sadhukhan at oracle.com
Mon Aug 24 11:23:08 UTC 2015


Hi All,

Bug: https://bugs.openjdk.java.net/browse/JDK-8081491
webrev: http://cr.openjdk.java.net/~psadhukhan/8081491/webrev.00/

This seems to be a hidden JTable bug in which if the user does not call 
pack() or set a ScrollPane() for JTable and rather use JFrame.setSize() 
smaller than table size then it was found that some of the rows which 
cannot be fitted in 1st page cannot get printed on 2nd and subsequent 
pages resulting in blank cells to be printed after 1st page.
It was found that BasicTableUI checks for table bounds to fall within 
the clip and if they do not intersect, it bails out from painting the 
table cells. I devised a solution whereby it will not bail out till 
either rows or columns are still left to be printed on subsequent pages 
. Please review and let me know if it's ok.

Regards
Prasanta



More information about the swing-dev mailing list