Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes JTable.setEditingRow Doesn't Seem to Work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable.setEditingRow Doesn Watch "JTable.setEditingRow Doesn New topic
Author

JTable.setEditingRow Doesn't Seem to Work

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

I'm trying to have a JTable where when a return key is pressed, the editing focus goes down one row. I'm trying to use getEdingRow() and setEditingRow(), but I can't seem to move the cell editor around with these calls.

Here is some of my code:


Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

The method JTable.editCellAt() isn't working for me either. It returns "true", but doesn't seem to do anything:

 
Consider Paul's rocket mass heater.
 
subject: JTable.setEditingRow Doesn't Seem to Work
 
Similar Threads
forms submit with collection
Removing multiple if conditions
Form Params not passed properly
Pulling my hair out over this one! Indexing issue
Domain class design question