get keypresses from SVGForm with only SVGLabels
I have a Screen class, extending SVGFORM, with only labels in it.No buttons or spinners and the like.
The SVGForm is displayed and on clock ticks, I change the label strings (telling time). So no input facilities.
The SVGForm has commands, Exit and pause.
The SVGForm is on its own thread, being Runnable.
all works nicely, but:
I need to act on the user pressing the "FIRE" button of the handset.
How can I get at the key code ?
keyPressed() does not catch it, somehow...
I put the SVGForm on its own thread. The program starts with a splash screen, then an input form to get some variables and then the clock screen starts and keeps running, that being the sole purpose of the program. When the clock is stopped , the program may exit. Is a separate thread for it necessary/a good idea ? or shouldn't I be bothered with threads at all ?