I'm trying to create a terminal-emulator like application. In the screen class, I need to have a method that I can call that will allow the user to type in some info and when they hit enter, return to my main code. I can't figure out a way to handle this - what I need to be able to do is the same thing that happens in the built-in dialog box, to call the method, and wait for the return. How is this accomplished?
Note: the way I STARTED to go was to sit in a sleep loop and wait for characters and scan each one, but that causes the awt / jfc to not be able to update the screen ( maybe I need a way to sit in a loop and tell java to go process everything else and then come back?).
Note: the way I STARTED to go was to sit in a sleep loop and wait for characters and scan each one, but that causes the awt / jfc to not be able to update the screen ( maybe I need a way to sit in a loop and tell java to go process everything else and then come back?).