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

Sergey Bylokhov serb at openjdk.java.net
Tue May 24 00:13:38 UTC 2022


On Mon, 23 May 2022 07:03:03 GMT, Tejesh R <duke at openjdk.java.net> 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.

Is it possible to create a new test case for this patch, or can we add @bug to some existed one?

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

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



More information about the client-libs-dev mailing list