How do I programmatically input something in a prompt ? Say, I want to run a demo of how to make an input in a prompt. Is there something in SwingHandler that I can use in order to simulate manually typing in something and hit the enter ? Thanks !