title: Clear JFrame background on transparent window
body: <p>i have a transparent JFrame    AWTUtilities.setWindowOpaque(this, false);
  I have a problem when resizing the window. I need something that could clear the background of the window before drawing on it,I need to make it all the background empty and transparent. Now the painting is draw over the old background and looks ugly.
  I tried to draw a transparent image over the background but i have same issues.</p>