Hi,
I just met the utilities (com.sun.awt.AWTUtilities
) to make your JFrame really transparent. Documentation here. This works very good. Even in Linux with the desktop effects with wobbly windows turned on (Here a little video)! But I want to make also a non-transparent component on the transparent JFrame.
Does anyone know, if this is possible, how?
Here is the code I used:
import com.sun.awt.AWTUtilities;
/* "this" is the JFrame */
this.setUndecorated(true);
AWTUtilities.setWindowOpaque(this, true);
AWTUtilities.setWindowOpacity(this, 0.5f);
AWTUtilities.setWindowShape(this, new RoundRectangle2D.Float(0f, 0f, (float) getWidth(), (float) getHeight(), 15f, 15f));
Thanks