title: Changing The Underlying Background Color Of A Swing Window
body: <p>As discussed <a href="http://forums.sun.com/thread.jspa?threadID=5308464&amp;start=0&amp;tstart=0" rel="nofollow noreferrer">here</a>, when resizing a Swing application in Vista (and Windows 7, which is what I'm using) you get a black background in the right/bottom corner while Swing's repaint catches up to the changes.</p>
  
  <p>Playing with other applications (Windows Explorer (Native), Firefox (C++?), and Eclipse (Java)) I notice that they all have this same problem - contrary to what the folks in the link above say - but they minimize the problem by having a grey fill color, which is far less visually jarring than the black that appears in Swing.</p>
  
  <p>I'm wondering if there's some way to change this so that Swing behaves like these other applications?  I tried setting the background color of the JFrame, but to no avail.</p>
  
  <p><strong>Additional Info</strong>
  Jonas discovered (see their informative answer below) that this is an issue with JFrames, but not AWT Frames - maybe that will help someone figure this out.</p>