How to save a key press to variable with jnativehook

42 Views Asked by At

So this is probably an obvious question, but i am just wondering if there is a way to save a key press to a variable (like a char or a string). I am relatively new to java, I know how to use scanners and how to make hash codes, I got a login screen with no back button coded so yea making good progress, but with all that aside how do i save a key press to a variable?

0

There are 0 best solutions below