In the file SampleDynamicXYDatasource.java
you can find the line
double amp = sinAmp * Math.sin(index + phase + 4);
There the sine wave is generated. By belating the index (e.g. by multiplying it with 0.5), you can make the sine wave's period larger, or in graphics speak, scale it on the x axis.