Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Making One cell In JTable Ediatable  RSS feed

 
Udaya Bascar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a JTable which has two Columns
one is SubjectCode and the other is Subject Description
i want the SubjectDescription column in the
Table not to be edited
but i will be editing SubjectCode Column
i have used a DefaultTableModel in this
how i can make one column alone not
being edited
public boolean isCellEditing(row,1)
{
return true;
}
is this code will do
any help will be handy
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No it is not.
Try
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!