1,105,578 Community Members

Java Swing and Graphics: Problem integrating the two

Member Avatar
Armanious
Light Poster
31 posts since Apr 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

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)?

Member Avatar
Armanious
Light Poster
31 posts since Apr 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

Bump. Guys, if this is not possible, at least tell me...

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: