Take a look at the Graphics class, particularly the drawArc() method.