But in SetValueAt() method we also need to write firetablecellchangesupdate() method.
Not sure what your point is.
If you use the DefaultTableModel then this is done for you automatically.
If you use a custom TableModel then, yes, you need to add the code yourself. Thats why I recommend you use the DefaultTableModel unless you have a specific reason to create a custom model. Its less work.