Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing JTable adjust the selection to account for the new rows when selection mode is set to ListSele  RSS feed

 
nabila omri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing JTable adjust the selection to account for the new rows when selection mode is set to ListSelectionModel.MULTIPLE_INTERVAL_SELECTION

How to override the public void tableChanged(TableModelEvent evt), in order to not lose previous row selections?
 
nabila omri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this linkk usefull? sorry I didn't found somrthing there
 
Rob Camick
Ranch Hand
Posts: 2800
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can hold down the Shift key to extend a selection or hold down the CTRL key to add a single row to the selection.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!