Changing The Underlying Background Color Of A Swing Window
Posted
by dimo414
on Stack Overflow
See other posts from Stack Overflow
or by dimo414
Published on 2010-05-06T06:47:28Z
Indexed on
2010/05/06
6:48 UTC
Read the original article
Hit count: 283
As discussed here, 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.
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.
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.
© Stack Overflow or respective owner