My objective is actually extremely simple, but I just don't know how to do it. I want to put some swing components on top of graphics which fills the entire screen. That's it. And I can't figure out how to do it...

Some other side-questions that I would love to be answered:

For double-buffering, which is better for performance: BufferedImage or VolatileImage? Which is better for display (consistent graphics, no flashing whatsoever)?

Why does JFrame seem to handle graphics better than Frame (without adding a Thread.sleep() function in a Frame class, the graphics flash [when double-buffering with VolatileImage]. When I do the same with JFrame, it stays consistent)?

This article has been dead for over six months. Start a new discussion instead.