08-12-2010 02:34 AM
I want to delete a editField when backspace is pressed and the field is empty. But any how it is not cheking the case under which I am checking if backspace is pressed. To check it I have kept a println function. But println not working. Here I want to delete toFld which is dynamically added.
protected boolean keyControl(char key,
int index = vfm.getFieldWithFocus().getIndex();
//EditField currentField=new EditField();
int start= toFld.getIndex();
case Characters.ENTER :
System.out.println("Hiiiiiiiiiiiiiiii ENTER is selected");
Please give me a solution
08-12-2010 03:02 AM
If I do it with key char then I can not write in the EditField if I want to.
I m deleteing the Edit Field because when it is not needed i will delete it by clicking the backspace.