How to get the focus from a particular textarea for some action?

Hi All,

I have created one small swing applications with two textarea. I want to implement a search such a way that if there is a focus on the textarea-1 and i search for some value using ctrl+f then it should search for contents present in textarea-1...

Can somebody please tell me ..How to find a component which had the focus?

View Answers









Related Tutorials/Questions & Answers:
Advertisements