Bogdan Daniel wrote:
> Hello!
> I wonder if anyone can help. I need to make a non-rectangular top-level
> window (JWindow). When I do the clipping, it seems that it takes place
> only what's inside my area is visible), however, the rest of the rectangle
> is gray, not transparent. Does anyone have any idea why this happens? And is
> this going to change to the correct behaviour? I work with Sun JDK 1.2.2 for
> Linux, but I would appreciate answers regarding other JDK's as well ( IBM
> 1.3 on Linux, anything on Windows).
Transparency within a Java window, where Java owns the pixels, is different
from transparency in the surrounding graphics system - hence round buttons but
not round top-level windows. The X Window System does have the necessary
capability (the "shape extension"), but it looks like the AWT isn't using it.
And if it's not happening on Linux, it's probably not happening on any Unix
platform or maybe any platform at all.
JDK1.3 is supposed to give you access to the low-level graphics objects (like X
display and window pointers) that would let you do the necessary magic yourself
in JNI code - but that's certainly not the simplest or most portable solution
around.
Nathan
>
>
> Thanks in advance
> Daniel
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]