private void calculateButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_calculateButtonActionPerformed
        configureGuiForCalculationPhase(true);

        String outputFile = springLenghtsTextField.getText();
        String anglesFile = anglesFileTextField.getText();
        String correctionsFile = outputFileTextField.getText();

        if (isFileAccessible(outputFile)
                && isFileAccessible(anglesFile)
                && isParentFolderAccessible(correctionsFile)
                && containsValidInteger(offsetTextField)) {
            controller.calculateWeights();
        } else {
            configureGuiForCalculationPhase(false);
        }
    }//GEN-LAST:event_calculateButtonActionPerformed