I have a GUI that displays a graph and I want to have some help with a code that allows you to click a point and then another point and then it draws a line. I need some help with this because I don't know were to start. ;)
OurNation
5
Master Poster
Recommended Answers
Jump to PostIn 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.
All 4 Replies
achyut
0
Newbie Poster
server_crash
64
Postaholic
OurNation
5
Master Poster
server_crash
64
Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.