• Post Reply Bookmark Topic Watch Topic
  • New Topic

double buffering on a canvas  RSS feed

 
Matthew Barker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i'm having trouble when trying to double buffer on a canvas for in a panel for a simple asteroid game i'm making.
Heres the start of the code for the canvas:

The program compiles fine but when i try to run it i get a null pointer exception at the line buffer = offScreen...
if anyone can help it'd be great, and if you need more code let me know
 
Matthew Barker
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ignore this post,
i worked it all out
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!