private void weightsSelectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_weightsSelectButtonActionPerformed
        File selection = Dialogs.selectFileFromDialog(this, weightsTextField.getText(), false);

        if (selection != null) {
            weightsTextField.setText(selection.getAbsolutePath());
        }
    }//GEN-LAST:event_weightsSelectButtonActionPerformed