• Post Reply Bookmark Topic Watch Topic
  • New Topic

forbid cursor to move from a cell ?  RSS feed

 
jack morton
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

How to forbid cursor to move from a cell JTable if its value is no a number ?

Best regards
 
Rob Camick
Ranch Hand
Posts: 2752
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the default behaviour of the table number editor. If its not working then than means you haven't overridden the getColumnClass() method to tell the table that the column contains Numbers.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!