Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!