I've written a basic messaging application (sends and receives text messages to/from a server, over UDP/HTTP) based solely on the high level GUI items (Forms, Lists etc) which works quite well.
Now I want to implement a "Panic Button" feature where if the user presses and holds and key for longer then X seconds then a distress (panic) message is sent to the server.
I know I can't handle low level events such as keyPress/release within the high level GUI so I thought to implement a CustomItem as an item inside some of the Forms/Lists. But it now occurs to me that ALL keyboard events will be trapped by this custom item so I will have to handle myself the writing of messages, commands etc.
Am I right? If so, does that mean I have to re write the WHOLE application?
And if I do, what tool to use? Polish or LWUIT? My app is very simple in concept.
Any suggestions or criticism welcome...