I'm trying to update my GUI (for example changing text/color of jButton and jLabel via hotkey) using jnativehooks so it updates my GUI when I press a hotkey, however after hours of searching and trying, I'm still not having any luck.
I have tried revalidate/validate/repaint etc but doesn't seem to be working (its calling the hotkey f9 and running the script in that section fine as it prints out the system.out), I'm a novice so I must be missing something simple :(
Here is my project (from scratch so only essentials, with the jnativehook library): https://www.dropbox.com/sh/keyp0tb2nobjg8t/AABOUQFqBWETRoX9D1vtcZe2a?dl=0
main.java: https://www.dropbox.com/sh/keyp0tb2nobjg8t/AAA0aib7y_k0uKtJ4sbnYHN7a/src?dl=0&preview=Main.java
Any help would be appreciated.
Main class code for anyone that cant view dropbox: https://hastebin.com/uqarilawop.java (too many indenting to post on stackoverflow as I dont know what I'm missing)