Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JFrame vs. Frame -- Black background appears on rapid resize in JFrame

843806Jun 25 2008 — edited Jun 26 2008
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Jun 25 2008
20 comments
2,287 views