File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Editing JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Editing JTable" Watch "Editing JTable" New topic

Editing JTable

Kushi Gadiparthi
Ranch Hand

Joined: Sep 23, 2010
Posts: 52
Hi All,

I want to edit a single column in a JTable instaed of editing all the columns in the table,

I am using

then every row and column in the table is getting into editable mode,

But I don,t want this I just want to edit only one column and wanted remaining column must be in uneditable mode,

Could any one help me in this,

Thank you very much,

Darryl Burke

Joined: May 03, 2008
Posts: 5093

Override isCellEditable(...) in either the table or its model. If the former, remember that unless you have disenabled it, columns can be dragged resulting in a view column index that is different from the model's.

luck, db
There are no new questions, but there may be new answers.
Kushi Gadiparthi
Ranch Hand

Joined: Sep 23, 2010
Posts: 52
Hello Darryl Burke,

Thank you very much for your quick reply,
I agree. Here's the link:
subject: Editing JTable
It's not a secret anymore!