this.jbDecrypt.setEnabled(false);
this.bar.setIndeterminate(true);
Thread runner = new Thread(){
public void run(){
FileEncryptor enc = new FileEncryptor(new String(MainView.this.jtfPassword.getPassword()));
File inputFile = new File(MainView.this.jtfInputFile.getText());
File outputFile = new File(MainView.this.jtfOutputFile.getText());
try {
FileInputStream file1 = new FileInputStream(inputFile);
FileOutputStream file2 = new FileOutputStream(outputFile);
enc.decrypt(file1, file2);
} catch (Exception e) {
JOptionPane.showMessageDialog(MainView.this, "Erro em descriptografar: "+e.getMessage());
}
MainView.this.jbEncrypt.setEnabled(true);
MainView.this.jbDecrypt.setEnabled(true);