• Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus on a specified cell

 
Janos Mozes
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I try to set the focus on a specified cell of JTable.... It is possible?
The method changeSelection doesn't sets the focus on a selected cell.
Thanks in advance!
JM
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you could use setEditingColumn and setEditingRow of JTable to invoke the editor of the specific cell. this should switch the focus to this cell.
c
 
Janos Mozes
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works! Thank You!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!