File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTable - firing events Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTable - firing events" Watch "JTable - firing events" New topic
Author

JTable - firing events

Terry McKee
Ranch Hand

Joined: Sep 29, 2000
Posts: 173
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

Joined: Sep 29, 2000
Posts: 8521
Put FocusListeners on your cells, and when the cell gets focus, do whatever with the JComboBox.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JTable - firing events
 
Similar Threads
JTable
JTable
JTable
JTable
JTable