<AWT Dev> [10] Review Request: 8186617 The "com.sun.awt.AWTUtilities" class can be dropped in favour of public API
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue Sep 5 22:08:08 UTC 2017
Thank you.
The CSR was created:
https://bugs.openjdk.java.net/browse/JDK-8187253
On 9/3/17 21:50, Alexander Zvegintsev wrote:
> Looks fine.
>
> Thanks,
> Alexander.
>
> On 23/08/2017 03:09, Sergey Bylokhov wrote:
>> Hello,
>> Please review the fix for jdk10.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8186617
>> Webrev can be found at:
>> http://cr.openjdk.java.net/~serb/8186617/webrev.00
>>
>>
>> The client code has a "com.sun.awt.AWTUtilities" class which at some
>> point(jdk6u10) in the past was used as a kind of "public" API.
>>
>> In jdk9 this class is inaccessible and all its functionality was
>> already provided by the public API, so this class can be removed.
>>
>> AWTUtilities.isTranslucencySupported()/AWTUtilities.isWindowShapingSupported()
>>
>> -> GraphicsDevice.isWindowTranslucencySupported()
>>
>> AWTUtilities.setWindowOpacity()/AWTUtilities.getWindowOpacity()
>> -> Window.setOpacity/getOpacity
>>
>> AWTUtilities.getWindowShape()/AWTUtilities.setWindowShape()
>> -> Window.setShape()/getShape()
>>
>> AWTUtilities.setWindowOpaque/AWTUtilities.isWindowOpaque
>> -> setBackground()/isOpaque()
>>
>> AWTUtilities.isTranslucencyCapable
>> -> GraphicsConfiguration.isTranslucencyCapable()
>>
>> AWTUtilities.setComponentMixingCutoutShape
>> -> Component.setMixingCutoutShape()
>>
>> CSR will be created after technical review.
>
--
Best regards, Sergey.
More information about the awt-dev
mailing list