How To Draw Lines In Java Give An Example, awt package … But only the line appears and no directed arrow appears.