• Advertisement
Sign in to follow this  

JApplet Paint Flashing? (SOLVED)

This topic is 2106 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My java applet paint method produces a lot of flashing :/ I know one way round this would be double buffering but I thought all Swing things were double buffered automatically(JFrame for example).
I'm creating a game for my website, which is my first web game because I've never been too bothered about applets, and the JApplet creates flashing. When switched to normal applet the flashing is even worse.
The JApplet class doesn't have any this.createBufferStrategy or this.getBufferStrategy methods so would I have to code these things into the JApplet?
Thanks in advance.
p.s: whoever helps me and the solution works I will put a thank you with your username in the menu screen of the game and any other web games I make.

Solved it.
Just create graphics from an image then draw everything onto graphics then draw the image in the paint method.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement