protected void checkCustomComposite(){
  SecurityManager sm=System.getSecurityManager();
  if (sm != null) {
    if (compPermission == null) {
      compPermission=new java.awt.AWTPermission("readDisplayPixels");
    }
    sm.checkPermission(compPermission);
  }
}

protected void checkCustomComposite ( ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { if ( compPermission == null ) { compPermission = new java . awt . AWTPermission ( "readDisplayPixels" ) ; } sm . checkPermission ( compPermission ) ; } }
performs security permissions checks to see if a custom composite object should be allowed access to the pixels of this surface .
