Need help with on-screen keyboard (first post)
hello, this is my first post. i just finished a java course in university and i've found that i can probably use java for making small apps i need.
the keyboard is made of JButton components inside a JPanel inserted to a JFrame. I've set up ButtonListener for each button and used the Robot class to fire key events according the source of the event like so:
Robot robot = new Robot();
you might notice the .delay(5000); and here is my problem, since the JFrame is .setAlwaysOnTop(true); clicking a button will make the window with the carret inactive so a 5sec delay is enough to make it active again so i can see the output is working. does anyone know how i can make this process automatic?
if this is too complicated maybe i can create a JTextArea component with the correct character and insert that somehow?
i'll really appreciate any help with this!