• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iscelleditable is not working in jtable

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying the jtable cell uneditable but it is not working can any body tell what is the problem

View Employee1.java





DButils.java


MyDefaultTableModel.java







 
Rob Camick
Ranch Hand
Posts: 2536
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Doesn't seem to make much sense to create a table with data from the SQL query, and then change the model to an empty model.

Did you add any debug statement to your custom model to see if the isCellEditable(...) method is ever invoked?

If you need further help then you need to create a SSCCE (Short, Self Contained, Compilable and Executable, Example Program), that demonstrates the incorrect behaviour.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic