The MouseEvent class has some methods that return the x and y values for the location of the mouse click.
Get those values and compare them against the bounds of area where the program wants to use...
Type: Posts; User: Norm
The MouseEvent class has some methods that return the x and y values for the location of the mouse click.
Get those values and compare them against the bounds of area where the program wants to use...
If you want to have a listener only respond to clicks in a selected area, add some if tests for detecting where the click was done and ignore it if the click is not in the desired area.