Jump to content
  • Advertisement
Sign in to follow this  

JApplet Paint Flashing? (SOLVED)

This topic is 2227 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!