private void update_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_update_buttonActionPerformed
        
        //Updates the position of the echosounder view to that of the calibration sphere.
        Geometry.echosounderBeamTargetPosition[X]=Geometry.euclidianSpherePosition[X];
        //
        Geometry.echosounderBeamTargetPosition[Y]=Geometry.euclidianSpherePosition[Y];
        //
        Geometry.echosounderBeamTargetPosition[Z]=Geometry.euclidianSpherePosition[Z];
        //Retains original depth of transducer but updates the xy position of the transducer to that of the calibration sphere.
        Geometry.transducerPosition[X]=Geometry.euclidianSpherePosition[X];
        //
        Geometry.transducerPosition[Y]=Geometry.euclidianSpherePosition[Y];
        //Sets the echosounder view position and the transducer position textfields to thier new value.
        //
        //
        //
        //
        UserInterface.echosounder_z_texfield.setText(Integer.toString((int)Math.round(Geometry.echosounderBeamTargetPosition[Z])));
        //
        UserInterface.transducer_x_texfield.setText(Integer.toString((int)Math.round(Geometry.echosounderBeamTargetPosition[X])));
        //
        UserInterface.transducer_y_texfield.setText(Integer.toString((int)Math.round(Geometry.echosounderBeamTargetPosition[Y])));
        //
        Terminal.systemLogMessage("The target center point has been updated.");
    }