I am working on a point and click strategy game, so this might fit into the game development section as well as into the GUIsection.
I have a grid map, which extends JPanel. On that grid map, I have my units (planets, spacecraft) as JLabels. A mouse listener checks if a grid square that contains a unit has been clicked on (by using the coordinates), and then opens a menu that lets you move the selected unit, etc. Everything worked fine until I added tooltips that would display information about each unit. Now I can no longer click on the unit itself, but have to click somewhere on the grid square away from the unit to get the menue. And even then it does not always work. Please let me know what I did wrong and how I can fix it. Thanks