National Semiconductor has a good online design utility called Web Bench that you can use to design a constant-current switching supply with their simple switcher line. The big difference between that and a constant voltage supply is that you arrange the feedback so that it's proportional to the current rather than the voltage.