• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable cell Reading

 
Reddy Anil
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i read the last cell that i have entered in a Table,when i want to save it.i have used setValueAt() which reads all the cells & stores value in a 2D vectors.i m unable to read the last cell that i enter text in,w/o a event being fired i.e a tab or mouse pressed on some other cell.rest cells work fine
 
Swamy Vatti
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
remove the focus from the table when u click save...
 
Reddy Anil
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Swamy Vatti:
remove the focus from the table when u click save...

how do u do that.please send me code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!