We have to do a point-and-click game this year in class, and our teachers said we had to use Java...
We began with Swing to display the pictures of the game, and we are trying to find a way to detect where in the picture is the player clicking.
I already found some answers like checking the pixels, or using a MouseListener (see Java - Certain Regions of Components only clickable? and Java. Swing. JComponent's clickable area) as examples.
But I was wondering, can't it be easier just to put a JButton in the background, is that possible ?