Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable - firing events  RSS feed

 
Terry McKee
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTable that uses a custom editor that allows for a JComboBox in the last column. Everything works fine when you click on any of the cells on that column. However, I would like when a user tabs to a cell in that column to have the JComboBox to show its values. Any suggestions?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put FocusListeners on your cells, and when the cell gets focus, do whatever with the JComboBox.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!