Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Editing JTable" Watch "Editing JTable" New topic
Author

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,
regards


Jashvika
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

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: http://aspose.com/file-tools
 
subject: Editing JTable