Translucent/Shaped Windows
Anthony Petrov
anthony.petrov at oracle.com
Tue Aug 7 08:57:59 PDT 2012
On 8/7/2012 7:50 PM, Doug Zwick wrote:
> Anthony Petrov wrote:
>
>> I'm a bit late on this. I just want to clarify one thing:
>>
>> On 7/17/2012 4:08 AM, Doug Zwick wrote:
>>> through). I am running with 1.7.0_05. I did notice that calls to
>>> Window.setShape throw an exception:
>>>
>>> java.lang.UnsupportedOperationException: PERPIXEL_TRANSPARENT
>>> translucency is not supported.
>>>
>>> However,
>>> GraphicsDevice.isWindowTranslucencySupported(PERPIXEL_TRANSLUCENT)
>> This is expected. Please note the difference between:
>>
>> PERPIXEL_TRANSPARENT
>> and
>> PERPIXEL_TRANSLUCENT
>>
>> These two are two different constants. The former covers setShape(), and
>> the later - setBackground()/setWindowOpaque() translucency modes. They
>> are independent.
>
> Can you provide any guidance on whether Java 7 for OS X will support Window.setShape, or continue to use the alpha-based mechanism from Java 6?
Sure. CR 7124244 covers support for setShape() on Mac OS, and AFAIK the
fix has already been pushed to jdk7-dev repository, and is going to be
integrated to 7u8. You may want to try early access builds of 7u8 when
they are available to test it out.
--
best regards,
Anthony
More information about the macosx-port-dev
mailing list