• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable cell editing problem  RSS feed

 
Gorle Ramesh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Created one JTable. In that all columns belongs to 3 different classes(String, Int, Float).

I can change cell values by double-clicking on the cell. If i enter a proper value (Related to Column Class) and i press enter it is updating the cell. But if i enter a wrong value ( For example, in Float column ,if i enter characters) and press enter the cell is becoming red color.
If i enter a proper value and press enter, it is calling setValueAt(Object value, int row, int col) method. but if i enter wrong value and press enter , it is not calling that function. Before that it is calling some other function.
Could some one please tell me which method is being called when i enter wrong value. Because i have to restore original value when i enter a wrong value.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!