• Post Reply Bookmark Topic Watch Topic
  • New Topic

FocusEvent

 
P Jain
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have three JTextFields all are associated with FocusListener,
I have added action command like T1,T2 and T3 with them respectively.
How do I come to know that which JTextField has FocusGained event and which one has got FocusLost event.
According to Event Source I have to do functionality.
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could check where the Events come from by using e.getSource()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!