- Get a map of the United States
- Draw it on a JPanel
- Add a click handler to the JPanel
- In the click handler, retrieve information where the user clicked from the event
- Have a set of polygons of all the state boundaries
- Iterate through all the poloygons to check if the user clicked inside one
- Return the associated state
solved How to have an interactive map in JFrame