views:

26

answers:

1

I would like to create a JWindow that's not only has an opacity, but I want to change the default color of the opacity within Swing.

So for example, if I write:

AWTUtilities.setWindowOpacity(this, 0.5f);

This will make do exactly what I want with one exception, the color is white. How can I make the color become black?

I've tried everything from setBackground(Color.Black), etc. on "this"...

+1  A: 
        window.getContentPane().setBackground(Color.BLACK);
Mark Peters