RFR: 6753661: JFileChooser font not reset after Look & Feel change [v3]
Sergey Bylokhov
serb at openjdk.org
Wed Feb 8 00:52:53 UTC 2023
On Mon, 6 Feb 2023 08:46:24 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Issue is observed that after changing the Look & Feel from Metal to Nimbus and back to Metal, the Nimbus font continues to be used by a JFileChooser.
>> This is because Synth `installDefaults `methods set the font, but its inverse methods `uninstallDefaults `do not remove them.
>> Fix is made to reset the font if it is set by L&F.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Test other L&F uninstallDefault
test/jdk/javax/swing/JFileChooser/JFileChooserFontReset.java line 76:
> 74: System.out.println("");
> 75: System.out.println("");
> 76: }
This looks fine, but please fix that "Whitespace error" above.
-------------
PR: https://git.openjdk.org/jdk/pull/12180
More information about the client-libs-dev
mailing list