RFR: 8236907: JTable added to nested panels does not paint last visible row [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Feb 18 13:06:47 UTC 2022


On Fri, 18 Feb 2022 12:36:21 GMT, Tejesh R <duke at openjdk.java.net> wrote:

>> Issue in painting last row of JTable due to decrement in `MaxRow `during computation. Differences in `MaxRow `computation between `TablePrintable` and `BasicTableUI `class. The Bug is fixed in both the classes. Test Case added to validate the same.
>
> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8236907: JTable added to nested panels does not paint last

test/jdk/javax/swing/JTable/8236907/LastVisibleRow.java line 61:

> 59:             testRobot = new Robot();
> 60: 
> 61:             javax.swing.SwingUtilities.invokeAndWait(new Runnable() {

No need for SwingUtilities expansion since import is already done

test/jdk/javax/swing/JTable/8236907/LastVisibleRow.java line 67:

> 65:                         createAndShowGUI();
> 66:                     } catch (Exception e) {
> 67:                         e.printStackTrace();

I guess any exception in creating GUI should exit the test with proper exception so need to catch.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7422



More information about the client-libs-dev mailing list