In the MouseEvent's you can do this to get the location of the click:
Event.getX();
Event.getY();
That would help you with the coordinates of where the click happened, and where you should draw the line.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
you can store it in a double:
double x1 = Event.getX();
double y2 = Event.getY();
I don't know how you are going to tell if the first points were clicked unless you use a boolean...Like that boolean is set to true if the frst points are clicked, and then set to false..If that boolean is set to false, y would then store to the points in the second set of coordinates:
double x2 = Event.getX();
double y2 = Event.getY();
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20