Hello, I'm writing a keylogger program that (as the name states), logs all keystrokes into a .txt file. The problem I am encountering is adding the key listener. I know I have to add the key Listener to something, however is there a way to have the key listener always run no matter which component is in focus?

TheParadox,
Use common event handler for different components.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.