RFR: 6429812: NPE after calling JTable.updateUI() when using a header renderer + XP L&F [v9]
Tejesh R
tr at openjdk.java.net
Wed Jun 8 07:01:08 UTC 2022
> _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 one additional commit since the last revision:
Updated for multiple LookAndFeel
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/8830/files
- new: https://git.openjdk.java.net/jdk/pull/8830/files/89b4cadb..721b8818
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8830&range=08
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8830&range=07-08
Stats: 26 lines in 1 file changed: 21 ins; 5 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/8830.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8830/head:pull/8830
PR: https://git.openjdk.java.net/jdk/pull/8830
More information about the client-libs-dev
mailing list