@Override public void createBuffers(int numBuffers,BufferCapabilities caps) throws AWTException {
  Win32GraphicsConfig gc=(Win32GraphicsConfig)getGraphicsConfiguration();
  gc.assertOperationSupported((Component)target,numBuffers,caps);
  try {
    replaceSurfaceData(numBuffers - 1,caps);
  }
 catch (  InvalidPipeException e) {
    throw new AWTException(e.getMessage());
  }
}

@ Override public void createBuffers ( int numBuffers , BufferCapabilities caps ) throws AWTException { Win32GraphicsConfig gc = ( Win32GraphicsConfig ) getGraphicsConfiguration ( ) ; gc . assertOperationSupported ( ( Component ) target , numBuffers , caps ) ; try { replaceSurfaceData ( numBuffers - 1 , caps ) ; } catch ( InvalidPipeException e ) { throw new AWTException ( e . getMessage ( ) ) ; } }
the following multibuffering - related methods delegate to our associated graphicsconfig ( win or wgl ) to handle the appropriate native windowing system specific actions .
