RFR: 6429812: NPE after calling JTable.updateUI() when using a header renderer + XP L&F [v12]

Alexey Ivanov aivanov at openjdk.java.net
Wed Jun 8 15:35:27 UTC 2022


On Wed, 8 Jun 2022 14:09:24 GMT, Tejesh R <tr at openjdk.org> wrote:

>> _Header_ object not initialized/set when paint() method of `WindowTableHeaderUI` class is executed. The paint() event is executed through explicit call of `JTable.updateUI()` in the regression test. In order to set the _header_ to the _called_ JTable, it is set in the `getTableCellRendererComponent()` method, which in turn makes the _header_ object available during paint event without causing NPE.
>
> Tejesh R has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Updated Copyright
>  - Reverting imports ordering

Marked as reviewed by aivanov (Reviewer).

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

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



More information about the client-libs-dev mailing list