drawLine
// Draw a line from (x1, y1) to (x2, y2), using the current color.
public void drawLine(int x1, int y1, int x2, int y2)
Example call: // Draw a line from (1,5) to (2,10)
drawLine(1, 5, 2, 10);
Previous slide
Next slide
Back to first slide
View graphic version