JFrame vs. Frame -- Black background appears on rapid resize in JFrame
843806Jun 25 2008 — edited Jun 26 2008Hello,
I am wondering if anyone can explain (with certainty) why there is a black background in the JFrame window -- which I can't seem to access to change it's color -- when I rapidly make the window larger. There is no such problem with the Frame class. Therefore, I am wondering if there is an access method to get at this underlying black background and change it's color? Or must I reimplement JFrame and all dependencies?
The reason I ask the last question is that if you look at any of the JFrame demonstrations in the Swing tutorials, ( e.g., "How to..." http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html ) the black background is also there. So it seems like someone actually intends for the window to work this way, but no professional application should exhibit this type of behavior. Hence, am I required to reimplement?
Who would want to see their window resizing faster than the background they set?
Was Swing implemented to be "proof-of-concept quality" on purpose? Or is there some work-around?
Thanks,
Tex_trex
Edited by: tex_trex on Jun 25, 2008 2:37 PM
Edited by: tex_trex on Jun 25, 2008 2:40 PM