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]
Damon Nguyen
dnguyen at openjdk.org
Fri Jan 3 20:45:37 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
Ran java test with updates. "Hi 24" looks like it's showing properly. LGTM
-------------
Marked as reviewed by dnguyen (Committer).
PR Review: https://git.openjdk.org/jdk/pull/22908#pullrequestreview-2529687496
More information about the client-libs-dev
mailing list