Re: TRANSPARENT WINDOWS OR JFRAMEs
Friday, June 27, 2003 06:40 AM
I don't believe you can do this with the current version of Java.
Currently you can make any JComponent transparent (see-through)
by calling setOpaque (false) on it (you can also make them semi-transparent by setting an alpha value in their background color). This is not the case
with JFrame, JWindow or JDialog.
To be sure You can see evidence of this in the documentation for
JFrame. The following is from the description for setContentPane () in JFrame's documentation (JDK 1.4.1):
"Swing's painting architecture requires an opaque JComponent in the containment hiearchy. This is typically provided by the content pane. If you replace ..."