Hasmukh
Hasmukh

Reputation: 4670

How search text in edit textfield in blackberry?

How can I handle event in EditText Field?.

Example: when I enter some text in EditText then what I have to do generate custom layout? below is my screen.Does any one have idea please tell me.

enter image description here

Upvotes: 0

Views: 284

Answers (1)

Govindarao Kondala
Govindarao Kondala

Reputation: 2862

try this

 EditField text=new EditField()
        {
            protected boolean keyChar(char key, int status, int time) 
            {
                if((int)key==10)//10 is ASCII code of "Enter" key
                {
                    add(new LabelField("New Field"));

                }
                return super.keyChar(key, status, time);

            }
        };
        add(text);

after enter all data just click on enter then new label will appear on screen

Upvotes: 1

Related Questions