Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable - Selected row

 
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);
 
The moustache of a titan! The ad of a flea:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!