RFR: 6753661: JFileChooser font not reset after Look & Feel change [v4]

Alexey Ivanov aivanov at openjdk.org
Wed Feb 8 11:39:49 UTC 2023


On Wed, 8 Feb 2023 05:36:55 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:
> 
>   jcheck fix

> Synth `installDefaults` methods set the font, but its inverse methods `uninstallDefaults` do not remove them.

It's a common problem in L&F code, see [JDK-8278620](https://bugs.openjdk.org/browse/JDK-8278620) and #10565. However, that changeset led to test failures which are still under investigation.

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

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



More information about the client-libs-dev mailing list