private void save(){
  try {
    FileUtils.write(new File(jarName + "-Scan.html"),text);
  }
 catch (  IOException e) {
    JOptionPane.showMessageDialog(null,e.getMessage(),"Error saving file!",JOptionPane.ERROR_MESSAGE);
  }
}

private void save ( ) { try { FileUtils . write ( new File ( jarName + "-Scan.html" ) , text ) ; } catch ( IOException e ) { JOptionPane . showMessageDialog ( null , e . getMessage ( ) , "Error saving file!" , JOptionPane . ERROR_MESSAGE ) ; } }
saves the scan to the filesystem .
