@Override public void assertOperationSupported(Component target,int numBuffers,BufferCapabilities caps) throws AWTException {
  if (numBuffers > 2) {
    throw new AWTException("Only double or single buffering is supported");
  }
  BufferCapabilities configCaps=getBufferCapabilities();
  if (!configCaps.isPageFlipping()) {
    throw new AWTException("Page flipping is not supported");
  }
  if (caps.getFlipContents() == BufferCapabilities.FlipContents.PRIOR) {
    throw new AWTException("FlipContents.PRIOR is not supported");
  }
}

@ Override public void assertOperationSupported ( Component target , int numBuffers , BufferCapabilities caps ) throws AWTException { if ( numBuffers > 2 ) { throw new AWTException ( "Only double or single buffering is supported" ) ; } BufferCapabilities configCaps = getBufferCapabilities ( ) ; if ( ! configCaps . isPageFlipping ( ) ) { throw new AWTException ( "Page flipping is not supported" ) ; } if ( caps . getFlipContents ( ) == BufferCapabilities . FlipContents . PRIOR ) { throw new AWTException ( "FlipContents.PRIOR is not supported" ) ; } }
checks that the requested configuration is natively supported ; if not , an awtexception is thrown .
