How to check that in which textfield cursor is present in java? : How we will find that the cursor is now in that text field?
I have two text fields in Java.I want to write text in text field but before writing text i want to check that which text field is selected.How can i check it please help me.