private boolean canAccessClipboard(){
  SecurityManager sm=System.getSecurityManager();
  if (sm == null)   return true;
  try {
    sm.checkPermission(SecurityConstants.AWT.ACCESS_CLIPBOARD_PERMISSION);
    return true;
  }
 catch (  SecurityException e) {
  }
  return false;
}

private boolean canAccessClipboard ( ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm == null ) return true ; try { sm . checkPermission ( SecurityConstants . AWT . ACCESS_CLIPBOARD_PERMISSION ) ; return true ; } catch ( SecurityException e ) { } return false ; }
assigns a valid value to the canaccessclipboard instance variable .
