@Override public long createBackBuffer(X11ComponentPeer peer,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");
  }
  return 1;
}

@ Override public long createBackBuffer ( X11ComponentPeer peer , 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" ) ; } return 1 ; }
attempts to create a glx - based backbuffer for the given peer . if the requested configuration is not natively supported , an awtexception is thrown . otherwise , if the backbuffer creation is successful , a value of 1 is returned .
