class Line extends DJComponent { int x1,y1; // xy-coordinate of the starting point int x2,y2; // xy-coordinate of the ending point }