public void edit(File file) throws IOException {
  checkAWTPermission();
  checkExec();
  checkActionSupport(Action.EDIT);
  file.canWrite();
  checkFileValidation(file);
  peer.edit(file);
}

public void edit ( File file ) throws IOException { checkAWTPermission ( ) ; checkExec ( ) ; checkActionSupport ( Action . EDIT ) ; file . canWrite ( ) ; checkFileValidation ( file ) ; peer . edit ( file ) ; }
launches the associated editor application and opens a file for editing .
