BTW, the complete MIDP 1.0+2.0 documentation is also included
in the Sun Wireless Toolkit in the docs folder.
i'm not happy with my cp's "behavior" when i'm texting. so i'm thinking of making it do what i want. hehehehe
Sure, Canvas is made ALSO for gaming but you can, of course, use it for serious issues, too. It is not too difficult to have a specific charset available (latin letters, numbers, and so on) and process the pressed keys in the way you want. You could even implement a kind of T9 (word prediction) if you want to. *g*
i am thinking of having the timeout function as a different thread and have it reset everytime a key is pressed...
is my hypothesis correct???
then keyPressed() is the key method for it and i would just add a counter so repeated pressing would produce different letters. my only problem is the timeout function when it happens it finalizes the letter displayed... and a lot of switch blocks...
Correct. keyPressed() is the method you need to use. You don't need to use another Thread. Just use the Timer class and TimerTask (which itself is a thread implementation) and then just schedule a new task on each keypress.
Take care to cancel the scheduled task when user presses a key prior than the 500 milliseconds with using timer.cancel().