This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable cell editing problem

Gorle Ramesh
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