<Swing Dev> [10] Review Request: 8075255 Metal L&F has dependency on the Windows L&F

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Oct 13 01:54:06 UTC 2017


Hello,
Please review the fix for jdk10.

Bug: https://bugs.openjdk.java.net/browse/JDK-8075255
Webrev can be found at: http://cr.openjdk.java.net/~serb/8075255/webrev.01

In the fix the dependency of MetalLookAndFeel from WindowsLookAndFeel is 
broken.

The old DesktopProperty which contains the general functionality was 
moved to sun/swing/plaf/DesktopProperty.java. This class can be reused 
later by other platforms/l&f if needed.

The Windows/Metal specific functionality was placed in 
WindowsDesktopProperty(used in win L&F) and in 
MetalFontDesktopProperty(used in metal l&f). The new test was added to 
check that this functionality actually works.

-- 
Best regards, Sergey.



More information about the swing-dev mailing list