Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jasmine Grant   on Jul 22 In Java Category.

  
Question Answered By: Wilbur Hall   on Jul 22

Jtextfield one=new Jtextfield("",3);
one.setName("one")
one.addFocusListener(this);


Jtextfield two=new Jtextfield("",4);
two.setName("two")
two.addFocusListener(this);

private void  focusLost(FocusEvent fe)
{
String name = ((Component)fe.getSource()).getName();
}

Share: 

 
 
Didn't find what you were looking for? Find more on FocusListner Or get search suggestion and latest updates.


Tagged: