• Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus listener in Table cell

 
aminur rashid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to add a focus listener to the cell of a JTAble.
If so How?
 
Thomas Suer
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amin!

You can add a CellEditorListener, I think this would be the appropriate listener you are looking for. By implementing this interface you have to implement the methods:
- void editingCanceled(ChangeEvent e) // This tells the listeners the editor has canceled editing
- void editingStopped(ChangeEvent e) // This tells the listeners the editor has ended editing
Good luck
Tom
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!