• Post Reply Bookmark Topic Watch Topic
  • New Topic

Highlighting Cell in JTable

 
Priya Ramesh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I Highlight the entire contents of the cell in a Jtable when the cell gets focus either when the tab key is pressed or the arrow keys??
I use a custom TextField derived from JTextField that allows only Numbers.
Thank you
Priya
 
Rajendar Goud
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi priya,
you can edit or highlight the contents of a cell
by using the method
editCellAt(int row,int col).
this retunrs a boolean.

Raj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!