467,864 Members | 1,936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,864 developers. It's quick & easy.

Transparent Windows?

People, is there a way to have translucidy windoes in Swing?

TIA,
Scirious.
Jun 20 '06 #1
  • viewed: 11181
Share:
5 Replies
"Scirious" <sc******@scirious.com> wrote in message
news:Kt******************************@giganews.com ...
People, is there a way to have translucidy windoes in Swing?


When I google for "translucent window in swing" I get
http://www.onjava.com/pub/a/onjava/e...k41/index.html

- Oliver

Jun 20 '06 #2
Thanks for the link. I've found this one, but I'm more interested in real
transparency. One the even makes the title bar and status bar transparent.

Scirious.
Jun 21 '06 #3

"Scirious" <sc******@scirious.com> wrote in message
news:Jc******************************@giganews.com ...
Thanks for the link. I've found this one, but I'm more interested in real
transparency. One the even makes the title bar and status bar transparent.


You could set windows decoration to false and draw the title bar and
status bar yourself.

- Oliver

Jun 21 '06 #4
Oliver Wong wrote:

"Scirious" <sc******@scirious.com> wrote in message
news:Jc******************************@giganews.com ...
Thanks for the link. I've found this one, but I'm more interested in real
transparency. One the even makes the title bar and status bar
transparent.


You could set windows decoration to false and draw the title bar and
status bar yourself.

- Oliver


Or use JWindow instead of JFrame, as windows don't actually have title
bars and such?
Jun 27 '06 #5
Sigmund Hansen wrote:
Oliver Wong wrote:
>>
"Scirious" <sc******@scirious.comwrote in message
news:Jc******************************@giganews.co m...
>>Thanks for the link. I've found this one, but I'm more interested in
real
transparency. One the even makes the title bar and status bar
transparent.

You could set windows decoration to false and draw the title bar
and status bar yourself.

- Oliver

Or use JWindow instead of JFrame, as windows don't actually have title
bars and such?
Read up on Java2D and read up on alpha. IMHO they should call it
opaqueness value since as the value get higher the window becomes more
opaque(opposite of transparent).
Yes JWindow and have a look at java.awt.Window and all its parents. The
trick is you can create a window without all the decorations which is
what you want. If you want to change the shape of the main window(i.e.
mostly known as "the Frame" which is why there is a special class for
it), check out the masking and window region operations(union,
intersection...).
Jul 26 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Efkas | last post: by
3 posts views Thread by Steve Koon | last post: by
8 posts views Thread by Grahammer | last post: by
2 posts views Thread by thowle | last post: by
8 posts views Thread by Brian Ward | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.