Home
Using drawLine() method
Lines are drawn by means of the drawLine(), method.
The drawLine() method shown here
void drawLine(int startX, int startY, int endX, int endY)
Here is a program to draw several lines on an applet
Next