RFR: 7169951: SwingSet2 throws NullPointerException with Nimbus L&F

Sergey Bylokhov serb at openjdk.org
Wed Feb 8 01:10:43 UTC 2023


On Fri, 13 Jan 2023 09:48:32 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> getStyle().getFont() returns null as "getFontForState(context)" returns null which is because synth state for floating toolbar is invalid which is 0x201 getStyle().getFont()" and "tabPane.getFont()" in normal valid case returns same font which is javax.swing.plaf.FontUIResource[family=SansSerif,name=sansserif,style=plain,size=12]

Where do we set this "invalid" state? Probably it is valid but we do not set the font property for it(or something like that)?

>No regression test is made as it can be verified with SwingSet2..

I am not sure that people will test this usecase if we do not have an instruction to do that nor the tests.

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

PR: https://git.openjdk.org/jdk/pull/11984



More information about the client-libs-dev mailing list