RFR: 8346260: Test "javax/swing/JOptionPane/bug4174551.java" failed because the font size of message "Hi 24" is not set to 24 in Nimbus LookAndFeel [v2]

Alexey Ivanov aivanov at openjdk.org
Fri Jan 3 19:53:36 UTC 2025


On Fri, 3 Jan 2025 15:01:17 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> "OptionPane.buttonFont" and "OptionPane.messageFont" property are ignored for Nimbus L&F as for Nimbus, lookup calls initiated by BasicOptionPaneUI#configureButton and BasicOptionPaneUI#configureMessageLabel, were redirected via SynthContext so UIManager.getDefaults L&F properties were ignored..
>> Added way to honor this properties for SynthOptionPaneUI..It could be later extended for other UI properties for other widgets which may need UIManager lookup..
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Call super

Marked as reviewed by aivanov (Reviewer).

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthDefaultLookup.java line 2:

> 1: /*
> 2:  * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.

Suggestion:

 * Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.

It's the third day of 2025.

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

PR Review: https://git.openjdk.org/jdk/pull/22908#pullrequestreview-2529620310
PR Review Comment: https://git.openjdk.org/jdk/pull/22908#discussion_r1902107033


More information about the client-libs-dev mailing list