I've read that JPanel
has a double buffering system, but I've also seen people manually create their own back buffer using BufferedImage
, which allows the user to add to the image before actually rendering.
How does the JPanel double buffering work, and why would someone create their own back buffer if JPanel
already has double buffering? What is an example of a time where BufferedImage
as your buffer would be needed/recommended?