Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA APPLET

Drawing Lines

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






Previous

Next