Transparent JDesktopPane with intransparent JInternalFrames?
- From: Jan Luehr <usenet@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Jun 2008 13:44:36 +0200
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
.
- Prev by Date: Re: cobbling a ComboBox
- Next by Date: Re: cobbling a ComboBox
- Previous by thread: Problem faced while using TinyLnF
- Next by thread: Weird window close behavior
- Index(es):