• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Double buffering with Canvas

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I thought I had implemented double buffering with a Canvas, but I noticed that the graphics didn't look smooth at all. I then rewrote it with the overriding JPanel paint method I knew would work and graphics looks a lot better. However, I can't really use this simplified implementation for what I want so would like to understand why the original one I tried, with the Canvas, didn't work. Thanks!



I've seen others do odd things with buffered images, but I dont understand why that would be necessary since the canvas already has a buffer. From what I understand the show() method should take care of everything for me

[ June 20, 2008: Message edited by: Bob Blumkin ]
[ June 20, 2008: Message edited by: Bob Blumkin ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!