Search:

Type: Posts; User: Norm

Search: Search took 0.19 seconds.

  1. Re: Add MouseClickEvent for a X/Y-Coordinate (JFrame)

    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...
  2. Re: Add MouseClickEvent for a X/Y-Coordinate (JFrame)

    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.
Results 1 to 2 of 2