So I\'m creating a game in Java in which the user clicks on an image that\'s different from the rest. I\'ve already got the images for the level created, but I just want to make
Why do you want an invisible object above your image?
Anyway, to answer your question, create a JPanel located just as your image.
JPanel yourPanel = new JPanel()
Set it's location same as your image.
Create a MouseListener on your JPanel.
yourpPanel.addMouseListener( new MouseAdapter() { @Override public void mousePressed( MouseEvent evnt ){ // Your code when clicked here } });