@@ -830,7 +830,7 @@ else if (elements[yColIdx].matches(Utils.tmRegex))
830830 boolean passFilters = true ;
831831 for (int k = 0 ; k < filterButtonList .size () && useFilterArr [k ]; ++k ) {
832832 if (!Pattern .matches (Utils .fpRegex , elements [fltrColIdxArr [k ]])) {
833- JOptionPane .showMessageDialog (null , "Invalid value for Filter " + k + ", file " + logFile .getName () + ", column " + (fltrColIdxArr [k ] + 1 ) + ", row " + i , "Invalid value" , JOptionPane .ERROR_MESSAGE );
833+ JOptionPane .showMessageDialog (null , "Invalid value for Filter " + ( k + 1 ) + ", file " + logFile .getName () + ", column " + (fltrColIdxArr [k ] + 1 ) + ", row " + ( i + 1 ) , "Invalid value" , JOptionPane .ERROR_MESSAGE );
834834 return ;
835835 }
836836 fltrVal = Utils .parseValue (elements [fltrColIdxArr [k ]]);
@@ -842,11 +842,11 @@ else if (elements[yColIdx].matches(Utils.tmRegex))
842842 // Value should be processed
843843 if (passFilters ) {
844844 if (!Pattern .matches (Utils .fpRegex , elements [xColIdx ]) && !Pattern .matches (Utils .onOffRegex , elements [xColIdx ])) {
845- JOptionPane .showMessageDialog (null , "Invalid value for X-Axis, file " + logFile .getName () + ", column " + (xColIdx + 1 ) + ", row " + i , "Invalid value" , JOptionPane .ERROR_MESSAGE );
845+ JOptionPane .showMessageDialog (null , "Invalid value for X-Axis, file " + logFile .getName () + ", column " + (xColIdx + 1 ) + ", row " + ( i + 1 ) , "Invalid value" , JOptionPane .ERROR_MESSAGE );
846846 return ;
847847 }
848848 if (!Pattern .matches (Utils .fpRegex , elements [yColIdx ]) && !Pattern .matches (Utils .onOffRegex , elements [yColIdx ])) {
849- JOptionPane .showMessageDialog (null , "Invalid value for Y-Axis, file " + logFile .getName () + ", column " + (yColIdx + 1 ) + ", row " + i , "Invalid value" , JOptionPane .ERROR_MESSAGE );
849+ JOptionPane .showMessageDialog (null , "Invalid value for Y-Axis, file " + logFile .getName () + ", column " + (yColIdx + 1 ) + ", row " + ( i + 1 ) , "Invalid value" , JOptionPane .ERROR_MESSAGE );
850850 return ;
851851 }
852852 skip = false ;
@@ -907,7 +907,7 @@ else if (elements[yColIdx].matches(Utils.tmRegex))
907907 val = 0 ;
908908 for (Integer vColIdx : vColIdxArray ) {
909909 if (!Pattern .matches (Utils .fpRegex , elements [vColIdx ]) && !Pattern .matches (Utils .onOffRegex , elements [vColIdx ])) {
910- JOptionPane .showMessageDialog (null , "Invalid value for Data, file " + logFile .getName () + ", column " + (vColIdx + 1 ) + ", row " + i , "Invalid value" , JOptionPane .ERROR_MESSAGE );
910+ JOptionPane .showMessageDialog (null , "Invalid value for Data, file " + logFile .getName () + ", column " + (vColIdx + 1 ) + ", row " + ( i + 1 ) , "Invalid value" , JOptionPane .ERROR_MESSAGE );
911911 return ;
912912 }
913913 val += Utils .parseValue (elements [vColIdx ]);
0 commit comments