×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    13

    how to handle keypressed event in canvas for Alphanumreic using j2me midp2.0?

    Hi All,

    I am using canvas for drawing Strings in mobile screen based on the user input using key pressed event.Here my user wants to enter alphanumeric character like abc. For example user try to enter 'd' then it will display 3 instead of 'd'.So, do i get both String and numeric and able to draw in the mobile screen.

    Please Guide me Get this issue...

    Saravanan.P

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: how to handle keypressed event in canvas for Alphanumreic using j2me midp2.0?

    you have to map it yourself (or use a library that will do it for you) you have to code your app to interpret the keypressed '3' as a 'd', then an 'e', an 'f' ...

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    13

    Re: how to handle keypressed event in canvas for Alphanumreic using j2me midp2.0?

    thanks for your reply . could you please refer any libary for doing that?....

  4. #4
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: how to handle keypressed event in canvas for Alphanumreic using j2me midp2.0?

    i guess lwuit does that, so you an either use their textfield component, or see in the source for the translation keypressed-letter

Similar Threads

  1. Problem with keyPressed in Canvas
    By jy820314 in forum Mobile Java General
    Replies: 3
    Last Post: 2011-12-20, 05:38
  2. How to handle LostFocus event for TextField in J2ME?
    By anupdesai1248 in forum Mobile Java General
    Replies: 4
    Last Post: 2009-03-02, 18:15
  3. how to handle event on ticker in j2me
    By pashraj in forum Mobile Java General
    Replies: 0
    Last Post: 2008-03-13, 13:36
  4. Keypressed Event on canvas
    By earamsey in forum Mobile Java General
    Replies: 2
    Last Post: 2006-09-05, 19:51
  5. handle game event in j2me
    By wmchan78 in forum Mobile Java General
    Replies: 2
    Last Post: 2006-03-04, 03:56

Posting Permissions

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