BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 02-12-2009, 11:52 PM   #1 (permalink)
Knows Where the Search Button Is
Join Date: May 2008
Model: 7100
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to handle alphabetic key rim java api

Please Login to Remove!

hi all,
we are using rim api's on j2me for our application.
we are writing the alphabetics using canvas,we are not using any system
generated alphabets.
in j2me it is working fines as the keys will be only 0-9,
but when we ported our application to black berry only keys from 0 - 9
are getting printed,we want alphabets a-z to get print.
Can any one help us to come of this???
how to handle keys a - z in black berry...

Old 02-16-2009, 11:47 PM   #2 (permalink)
New Member
Join Date: Feb 2009
Model: 8700
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts

override keychar method on ur screen class

protected boolean keyChar(char key, int status, int time)

to get the corresponding value of key pressed use Characters.____ class

this should help
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.