private void updateIndexValues()
  {
    // calculate the current sample (frame) index
    int curFrame = (int)(currentPixelPosition * framesPerPixel);
    
    // update the display of the current sample (frame) index
    indexValue.setText(Integer.toString(curFrame + base));
    
    // update the number of samples per (between) pixels field
    if (numSamplesPerPixelField != null)
      numSamplesPerPixelField.setText(Integer.toString((int) framesPerPixel));
    
    // try to update the value(s) at the current sample index
    try
    {
      leftSampleValue.setText(Integer.toString(sound.getLeftSample(curFrame)));
      if(inStereo)
        rightSampleValue.setText(Integer.toString(sound.getRightSample(curFrame)));
    }
    catch(Exception ex)
    {
      catchException(ex);
    }
  }