Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Transparent Windows?

Thread view: 
Scirious - 20 Jun 2006 01:14 GMT
People, is there a way to have translucidy windoes in Swing?

TIA,
Scirious.
Oliver Wong - 20 Jun 2006 16:41 GMT
> 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/excerpt/swinghks_hack41/index.html

   - Oliver
Scirious - 21 Jun 2006 03:24 GMT
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.
Oliver Wong - 21 Jun 2006 15:01 GMT
> 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
Sigmund Hansen - 27 Jun 2006 01:09 GMT
>> 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
[quoted text clipped - 4 lines]
>
>    - Oliver

Or use JWindow instead of JFrame, as windows don't actually have title
bars and such?
tabun@storm.ca - 26 Jul 2006 08:07 GMT
>>> Thanks for the link. I've found this one, but I'm more interested in
>>> real
[quoted text clipped - 8 lines]
> 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...).


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.