On Mon, 23 May 2022 07:03:03 GMT, Tejesh R <t...@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.

This pull request has now been integrated.

Changeset: 5a89cb01
Author:    Tejesh R <t...@openjdk.org>
Committer: Alexey Ivanov <aiva...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/5a89cb01bc92408648a3b59b63251ec8d0b67558
Stats:     153 lines in 2 files changed: 143 ins; 3 del; 7 mod

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

Reviewed-by: aivanov, serb

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

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

Reply via email to