Translucent/Shaped Windows
Anthony Petrov
anthony.petrov at oracle.com
Tue Aug 7 03:45:38 PDT 2012
Hi Doug,
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.
--
best regards,
Anthony
More information about the macosx-port-dev
mailing list