Integrated: 6513512: MetalLookAndFeel.initClassDefaults does not install an entry for MetalMenuBarUI

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Feb 13 09:02:39 UTC 2023


On Tue, 13 Dec 2022 09:56:47 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Spec for [MetalLookAndFeel](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java#L247)
> says:
> "...MetalLookAndFeel registers an entry for each of the classes
> in the package javax.swing.plaf.metal that are named MetalXXXUI.
> The string XXX is one of Swing's uiClassIDs. For the uiClassIDs
> that do not have a class in metal, the corresponding class in
> javax.swing.plaf.basic is used. For example, metal does not
> have a class named "MetalColorChooserUI", as such,
> javax.swing.plaf.basic.BasicColorChooserUI is used".
> 
> There is class MetalMenuBarUI, but the method populates given defaults table with the value
> "javax.swing.plaf.basic.BasicMenuBarUI".
> 
> Added entry for MetalMenuBarUI..
> CI tests including JCK tests are ok.

This pull request has now been integrated.

Changeset: 0458d382
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0458d3825c0b6ba215a87143ad472acdcba59f40
Stats:     3 lines in 2 files changed: 1 ins; 2 del; 0 mod

6513512: MetalLookAndFeel.initClassDefaults does not install an entry for MetalMenuBarUI

Reviewed-by: serb, aivanov

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

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



More information about the client-libs-dev mailing list