Skip to Content
author's profile photo
Former Member

How do you handle low-level key events in AWT?

Hi,

It's all fine and well to use AWT to construct a UI for your ME application, but how do you listen to key events e.g. for navigation, etc? I've done some searching on the web, but all the support for this kind of thing (like MIDP) seems to be for releases after 1.1. Anyone have a good solution for this?

Regards,

Martin Ceronio

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on May 20, 2004 at 02:22 PM

    After some more reading, I've come accross a MIDP GUI Programming article at http://developers.sun.com/techtopics/mobility/midp/articles/ui/. Of particular concern to me is the following statement:

    "The AWT assumes certain user interaction models. The component set of the AWT is designed to work with a pointing device such as a mouse; however many handheld devices, such as cell phones, have only a keypad for user input."

    While the device we plan to use has a pointing device (stylus), we want the users to be able to do without it, i.e. only use the keypad.

    Add comment
    10|10000 characters needed characters exceeded