Hello,
I'm a beginner to
Java programming.
Would someone look at this code and tell me where I've gone wrong?
In the method
mouseClicked(MouseEvent me) the co-ords of the click are obtained.
* if they are within the confines of the rectangle
rect, console output System.out.println("inside box") is displayed
* in either case the click co-ords are displayed in the console
I'm getting the co-ords of the mouse clicks but no message when the click is inside the box
Any help most welcome.
Thank you.