Check for range: if-statement
Hi,
I declare a point, e.g.
private Point2D goToThisPoint =new Point2D.Double(100, 100);
and I am storing the mouse clicks in a variable:
private Point2D currentMouseClickPosition;
I would like to display a JOptionPane if the mouse click is within a range of 10px in relation to my goToThisPoint. My only problem is that I don't know how to check for this range...
Thanks!!!

