I want to create an overlay image in Java which floats above the desktop but does not have any mouse interaction.
(similar to Ignore mouse interaction on overlay image but in Java not Javascript)
I have already tried to make a Jframe with an transparent background. As seen in this photo:
This works well and I can click in the transparent area through to the desktop below. However, when I click on the image it still focuses the frame and has mouse interaction.
I have tried this stopping it from focusing:
window.setFocusableWindowState(false);
window.setFocusable(false);
I have also considered removing the mouse listeners but I don't know how to do that or if it would solve the issue.
My overall goal is to make this image float above the desktop but not stop clicking or interaction with the objects below.