private void jbuttonOKMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbuttonOKMouseClicked
     //this.jTextFieldBackground.setText(singleExperiment.getParam("Flag Background"));
     this.singleExperiment.setParam("Description", this.jTextFieldDescription.getText());
    // this.singleExperiment.setParam("Experimental Scatering", this.jTextFieldScatteringCurveFile.getText());
     this.singleExperiment.setExperimentalScatteringCurve(this.jTextFieldScatteringCurveFile.getText());
     
     this.singleExperiment.setParam("Minimum Q in data file", this.jTextFieldMinimumQInDataFile.getText());
     this.singleExperiment.setParam("Maximum Q in data file", this.jTextFieldMaximumQInDataFile.getText());
     this.singleExperiment.setParam("Fixed rel.err. on the first point", this.jTextFieldFixedRelErrOnTheFirstPoint.getText());
     this.singleExperiment.setParam("Number of lines to skip", this.jTextFieldNumberOfLinesToSkip.getText());     
     this.singleExperiment.setParam("Maximum Distance for p(r) calculation", this.jTextFieldMaximumDistanceFopCalculation.getText());
     this.singleExperiment.setParam("Scaling Factor", this.jTextFieldScalingFactor.getText());     
     this.singleExperiment.setParam("Num. of Q-points to average", this.jTextFieldNumberOfQPointsToAverage.getText());
     this.singleExperiment.setParam("Flag Background", this.jComboBackGround.getSelectedItem().toString().trim());
     this.singleExperiment.setParam("Exponent alpha of power-law", this.jTextFieldExponentAlphaOfPowerLaw.getText());
     
     
     /** FLAGS **/
     if (this.jCheckBoxCollimation.isSelected()){
         this.singleExperiment.setParam("Collimation", "1");
     }
     else{
         this.singleExperiment.setParam("Collimation", "0");
     }
     
     if (this.jCheckBox_Mouve_Qpoints_in_the_error_bar.isSelected()){
         this.singleExperiment.setParam("Mouve Q-points", "1");
     }
     else{
         this.singleExperiment.setParam("Mouve Q-points", "0");
     }
     
     if (this.jCheckBoxWavelength_band.isSelected()){
         this.singleExperiment.setParam("Wavelength band", "1");
     }
     else{
         this.singleExperiment.setParam("Wavelength band", "0");
     }
     
     if (this.jCheckBoxDetector.isSelected()){
         this.singleExperiment.setParam("Flag Detector", "1");
     }
     else{
         this.singleExperiment.setParam("Flag Detector", "0");
     }
     
     if (this.jCheckBoxRadialaverage.isSelected()){
         this.singleExperiment.setParam("Flag Radial", "1");
     }
     else{
         this.singleExperiment.setParam("Flag Radial", "0");
     }
     
     if (this.jCheckBoxVertical_Slit.isSelected()){
         this.singleExperiment.setParam("Flag Vertical slit", "1");
     }
     else{
         this.singleExperiment.setParam("Flag Vertical slit", "0");
     }
     
     if (this.jCheckBoxHorizontalSlit.isSelected()){
         this.singleExperiment.setParam("Flag Horizontal slit", "1");
     }
     else{
         this.singleExperiment.setParam("Flag Horizontal slit", "0");
     }
          
     /** Collimation fields **/     
     this.singleExperiment.setParam("Number of points for the convolution", this.jTextFieldNumberOPointsForTheConvolution.getText());
     this.singleExperiment.setParam("Source-sample distance", this.jTextFieldSourceSampleDistance.getText());
     this.singleExperiment.setParam("Wavelength (Angs.)", this.jTextFieldWaveLengthAngs.getText());
     this.singleExperiment.setParam("Radius of the source slit", this.jTextFieldRadiusOftheSourceSlit.getText());
     this.singleExperiment.setParam("Radius of the sample slit", this.jTextFieldRadiusOfTheSampleSlit.getText());
     this.singleExperiment.setParam("Sample-detector distance", this.jTextFieldSampleDetectorDistance.getText());          
     
     /** Flags fields **/
     this.singleExperiment.setParam("Spacial resolution of detecto", this.jTextFieldSpacialResolutionOfDetector.getText());
     this.singleExperiment.setParam("Q1   vertical slit", this.jTextFieldQ1VerticalSlit.getText());
     this.singleExperiment.setParam("Q1   horizontal slit", this.jTextFieldQ1HorizontalSlit.getText());
     this.singleExperiment.setParam("Wavelength band (Angs.)", this.jTextFieldWaveLenghtBandAngs.getText());
     this.singleExperiment.setParam("Qmax vertical slit", this.jTextFieldQMaxVerticalSlit.getText());
     this.singleExperiment.setParam("Qmax horizontal slit", this.jTextFieldQmaxHorizontalSlit.getText());
     this.singleExperiment.setParam("Sampling for radial average", this.jTextFieldSamplingForRadialAverage.getText());
     
              
     this.genfitEvent.fire();
     this.setVisible(false);
}//GEN-LAST:event_jbuttonOKMouseClicked