• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make a jtable uneditable?  RSS feed

 
pradeep poduval
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like to get the reply in datail.
thanks in advance
------------------
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your table model isCellEditable() method just return false. If you haven'e created your own model you need to. DefaultTableModel.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!