class graphics, point, and JFrame