public void destroyTripleBuffer(){
  if (tripleBuffer != null) {
    tripleBuffer=null;
    tripleBufferGraphics.dispose();
    tripleBufferGraphics=null;
  }
}

public void destroyTripleBuffer ( ) { if ( tripleBuffer != null ) { tripleBuffer = null ; tripleBufferGraphics . dispose ( ) ; tripleBufferGraphics = null ; } }
destroys the triplebuffer and triplebuffergraphics objects .
