Is the Java KeyListener universal meaning that it will work for any application that I type into?
If not, how can I make it universal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not universal. It only works if the component you registered it for has focus. You can use keyboard hooks to make it universal, but you will either have to use JNI or JNA to integrate the native code.