This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus listener in Table cell  RSS feed

 
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!