protected void flip(BufferCapabilities.FlipContents flipAction){
  if (peer != null) {
    Image backBuffer=getBackBuffer();
    if (backBuffer != null) {
      peer.flip(0,0,backBuffer.getWidth(null),backBuffer.getHeight(null),flipAction);
    }
  }
 else {
    throw new IllegalStateException("Component must have a valid peer");
  }
}

protected void flip ( BufferCapabilities . FlipContents flipAction ) { if ( peer != null ) { Image backBuffer = getBackBuffer ( ) ; if ( backBuffer != null ) { peer . flip ( 0 , 0 , backBuffer . getWidth ( null ) , backBuffer . getHeight ( null ) , flipAction ) ; } } else { throw new IllegalStateException ( "Component must have a valid peer" ) ; } }
flipping moves the contents of the back buffer to the front buffer , either by copying or by moving the video pointer .
