On Fri, 13 Jan 2023 09:48:32 GMT, Prasanta Sadhukhan <psadhuk...@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