Can I make a java.awt.Window that is non-rectangular?

C

Chris Berg

I use java.awt.Window.java to create pop-up windows much the same
style as in MS-Windows.

I would like to make them non-rectangular, eg. with rounded edges or
with other interesting shapes. But the Window doesn't become
transparent in the areas where I don't paint, it just becomes white
(or the background color that I set it to). I want it to display
whatever is behind the Window.

How to do that?

Chris
 
T

Thomas Weidenfeller

Chris Berg said:
I would like to make them non-rectangular, eg. with rounded edges or
with other interesting shapes. But the Window doesn't become
transparent in the areas where I don't paint, it just becomes white
(or the background color that I set it to). I want it to display
whatever is behind the Window.

This is asked every few days. You can either use a screen snapshot as
background on a rectangular window to partly fake this, or you have to
got to JNI. Search this group and comp.lang.java.gui for details. Or,
if you don't want to waste your time, forget about it.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top