Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3712
| From | "Jan Luehr" <jan.luehr@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Transparent JDesktopPane |
| Message-ID | <48622fa5$0$6563$9b4e6d93@newsspool3.arcor-online.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:46 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
Hello,
I was wondering: If a JDekstopPane is made transparent
eg:
JFrame jf = new JFrame("Frame");
jf.getContentPane().add(new JDesktopPane());
AWTUtilities.setWindowOpacity(jf, 0.75f);
Is it possible to have intranparent (or less transparent)
JInternalFrames? AWTUtilities.setWindowOpacity only applies to Windows...
Imho this could be difficult, 'cause SwingCompnents are
lightweight-Components and a DesktopPane / InternalFrame does not have a
corresponding awt class)
Is there a way to not draw the JDesktopPane's backround (via some paint
(Graphics g) magic - for instance) and use an underlaying JWindow for
the opacity-effect? Furthermore, how can I prevent painting the Pane's
background?
Thanks in advance,
Keep smiling
yanosz
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread
Transparent JDesktopPane "Jan Luehr" <jan.luehr@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000
csiph-web