I heard that a junction FET could be used as a constant-current source. How can I create a constant-current source?

I heard that a junction FET could be used as a constant-current source. How can I create a constant-current source?

When a junction FET is connected as shown below, it acts as a pseudo-constant-current diode.

A new window will open