This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 5040

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
jQuery in Action, 3rd edition