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

JTable - Selected row  RSS feed

 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hallo ,
I am working with 2 JTables.The tables are having parent-child realation and for each row in parent table,respective record is displayed in child table.
Initially in child table i am showing record for the first record in parent table.For this i want the first row of parent table to be set selected initially.
Can anybody guide me on these lines.
thanks in advance
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
table.setRowSelectionInterval(0,0);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!