Java Graphics class
use the drawLine method.