@Override public void assertOperationSupported(Component target,int numBuffers,BufferCapabilities caps) throws AWTException {
  if (numBuffers < 2 || numBuffers > 4) {
    throw new AWTException("Only 2-4 buffers supported");
  }
  if (caps.getFlipContents() == BufferCapabilities.FlipContents.COPIED && numBuffers != 2) {
    throw new AWTException("FlipContents.COPIED is only" + "supported for 2 buffers");
  }
}

@ Override public void assertOperationSupported ( Component target , int numBuffers , BufferCapabilities caps ) throws AWTException { if ( numBuffers < 2 || numBuffers > 4 ) { throw new AWTException ( "Only 2-4 buffers supported" ) ; } if ( caps . getFlipContents ( ) == BufferCapabilities . FlipContents . COPIED && numBuffers != 2 ) { throw new AWTException ( "FlipContents.COPIED is only" + "supported for 2 buffers" ) ; } }
checks that the requested configuration is natively supported ; if not , an awtexception is thrown .
