• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting Focus to next Row, As soon as I add a Row in JTable

 
mohana konakanchi
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to set focus to next row
(or select the next row) as soon as I add one row anywhere in Jtable.(Assume that I have one more row, below the added row).
Any help?
Mohana.
 
Buckley Lee
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using the function
"setRowSelectionInterval(int startindex,int endindex)" in class JTable? That function allows you to select the row(s) you desire. It's in the Java 1.3 documentation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!