I am using Java with Swing and I want to detect mouse clicks at a number of locations (~200) in the view.
Should I use coordinates to ascertain where the click occurs (requiring searching through every location) or add multiple JPanels over each location and listen for mouse events for all of them?