Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cursor positon within JTable  RSS feed

 
Saket Barve
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a scenario where I explicitly add rows to a table and am then required to set the cursor in the first column of this newly added row.

Once the row is set into the table model, I am making use of the following code to do the needful:



However, this code block merely makes the newly added row selected without any trace of the cursor. How may I tackle this?

Thanks,
Saket
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!