wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Handling Focussing of JTable cells Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Handling Focussing of JTable cells" Watch "Handling Focussing of JTable cells" New topic

Handling Focussing of JTable cells

cs sakthi

Joined: May 11, 2001
Posts: 15
I have used Jtable and the table model used is DefaultTableModel(). My table has 10 columns, in which the 4th column is editable and the 7th column is editable.
My requirement is that, whenever the focus is lost from the 4th column, it should jump to the 7th column. How to use this focus traversing.
I am very much need of getting this done, i am waiting for great replies...
One more thing, i have used Double datatype for 4th column, by default 0 will get displayed, when the user edits, the value gets appended to the right side of decimal point, like 0.023, how to avoid this too.
Advance Thanks,
jQuery in Action, 2nd edition
subject: Handling Focussing of JTable cells