I'm creating a small person program that I want to run in the background until I press Ctrl+Shft+L
It's a JFrame window and I have setVisible(false)
when something happens. After it's no longer visible, I need it to listen for the above keys and then display the JFrame again.
I've tried KeyEventDispatcher
and even JNativeHook and both didn't work.
How do I listen to keys in the background?