Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable

 
R.Joe
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i know the lastSelectedRow as well as the currentSelectedRow in JTable
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add an event listener, like ListSelectionListener.
Before you save the current selection, store the saved "current selection" in a "last selected" variable(s).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic