This content has been marked as final. Show 4 replies
getFocus() returns the object that has focus, so how about ...if(getFocus()==this)...?
Thanks for your reply.
But I'm sorry I still did not get it clearly. Suppose i have a TextArea whose id is "txtDemo", do you mean i should code like this:
if(txtDemo.getFocus() == this)
oh, i got it . thanks anyway.
What worked for you?