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

Sergey Bylokhov serb at openjdk.org
Wed Jan 25 21:02:38 UTC 2023


On Wed, 25 Jan 2023 06:45:53 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.

test/jdk/javax/swing/JFileChooser/JFileChooserFontReset.java line 36:

> 34: public class JFileChooserFontReset {
> 35:     public static void main(String args[]) throws Exception {
> 36:         UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");

Is it possible to test all installed L&F on the system?

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

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



More information about the client-libs-dev mailing list