Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting multiple rows in a JTable.  RSS feed

 
Pran Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand why this is so complicated...

If I have a JTable (or JXTable) with 5 elements in it, how to I select row 1, 2 and 4?

I tried the following:

This, will select 1 row:
;

This, will select all rows in the interval:
;

Thanks.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It isn't complicated if you use the addRowSelectionInterval method.
 
Pran Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the prompt reply!

It works fine now.

Thanks again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!