public static WGLWindowSurfaceData createData(WComponentPeer peer){
  if (!peer.isAccelCapable() || !SunToolkit.isContainingTopLevelOpaque((Component)peer.getTarget())) {
    return null;
  }
  WGLGraphicsConfig gc=getGC(peer);
  return new WGLWindowSurfaceData(peer,gc);
}

public static WGLWindowSurfaceData createData ( WComponentPeer peer ) { if ( ! peer . isAccelCapable ( ) || ! SunToolkit . isContainingTopLevelOpaque ( ( Component ) peer . getTarget ( ) ) ) { return null ; } WGLGraphicsConfig gc = getGC ( peer ) ; return new WGLWindowSurfaceData ( peer , gc ) ; }
creates a surfacedata object representing the primary ( front ) buffer of an on - screen window .
