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

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Tue Aug 25 10:23:09 UTC 2015


On 8/24/2015 2:23 PM, prasanta sadhukhan wrote:
> 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.

      What is the reason that the graphics clip does not intersect the 
table bounds during printing in the provided test case?

     Please, also mention in the email title JDK version for which the 
fix is provided.

    Thanks,
    Alexandr.

> 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