Ever wanted to draw a curve through different points in Java? Then CardinalSpline.java may be a good choice. The class generates a GeneralPath representing a curve that passes through an array of Points.

You can run a demo if you want.