private void compareButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_compareButtonActionPerformed
        if (compareFile == null) {
            JOptionPane.showMessageDialog(this, "Compare file hasn't been set.");
            return;
        }
        if (baseFile == null) {
            JOptionPane.showMessageDialog(this, "Base file has not been set.");
        }
        
        compareButton.setEnabled(false);
        
        try {
            File tmpFile = doCompare();
            Desktop.getDesktop().open(tmpFile);
        } catch (Throwable ex) {
            JOptionPane.showMessageDialog(this, "Unable to open diff file!");
            logger.log(Level.SEVERE, "Problems comparing file", ex);
        }
        compareButton.setEnabled(true);

    }//GEN-LAST:event_compareButtonActionPerformed