1

I created a customised keyboard in LWUIT as follows. I put a textfield and put buttons from "A-Z" and added actionlistener to each button so that it displays in the text field. Now my problem is there is no focus available. If I need to edit a letter in the middle of a word there is no way except to delete all the letters till then and correct it. So my question is how to implement a focuspointer in text field so that i can change any letter at any place.

doniyor
  • 36,596
  • 57
  • 175
  • 260
user1635256
  • 111
  • 1
  • 11

3 Answers3

0

You can create FocusListener and implement what you want, and then use function add lisitner to text field :

textFiledInstance.addFocusListener(Focus Listner instance)
neb1
  • 209
  • 1
  • 12
0

If you want to create a custom VirtualKeyboard, I recommend you to use the resource editor.

You must take a look on this LWUIT VKB

Mun0n
  • 4,438
  • 4
  • 28
  • 46
0

Are you talking about moving the cursor in the virtual keyboard in LWUIT?

All you need to do is touch the field within the VKB, not the text field being edited (which will close the VKB). This will move the cursor.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65