×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    61

    How to get keypress in form

    I want to get keypress and navigation movement in form. Is it possible. If yes than how. I know that we can get it in canvas. But how can we get it in form.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: How to get keypress in form

    Hi atige,

    You class extending javax.microedition.lcdui.Form must implement the javax.microedition.lcdui.CommandListener interface and override the method below (the only one available as per the interface contract):

    public void commandAction(Command c,
    Displayable d)


    As you know, when using Canvas, just override the methods below:

    protected void keyPressed(int keyCode)
    protected void keyReleased(int keyCode)
    protected void keyRepeated(int keyCode)




    Hope this helps
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. second form not getting key events
    By krsunil in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-12-10, 10:29
  2. differentiation in Keypress event in different pages of form
    By diptivs in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-10-16, 11:50
  3. how to create a Form like Lockcode form?
    By sarvestan in forum Mobile Java General
    Replies: 2
    Last Post: 2006-08-29, 20:15
  4. How to pass variable between form
    By imagina23 in forum Mobile Java General
    Replies: 1
    Last Post: 2006-06-15, 18:29
  5. Form not displaying
    By Shabs in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-07-09, 16:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×