This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to - multple row selection with JTable  RSS feed

 
yogesh kalaskar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all

To enable multiple row selection in JTable i am using following code
but it doent work and i am able to select single row only

table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
table.setRowSelectionAllowed(true);
table.setColumnSelectionAllowed(false);

any suggestions ???

thanks in advance!!
 
Andrei Pat
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's ok
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!