aspose file tools
The moose likes Swing / AWT / SWT and the fly likes how to set focus on cell of table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "how to set focus on cell of table " Watch "how to set focus on cell of table " New topic
Author

how to set focus on cell of table

prashant gour
Ranch Hand

Joined: Feb 07, 2006
Posts: 45
I am working on JTable and in one scenario I have to check the cell is empty or not, I am able to do that but now I want to set focus on that empty cell and also want to show cursor in that cell.
If any body have way out please share with me.

Thanks in advance

Prashant
prasanna kanth
Greenhorn

Joined: May 14, 2006
Posts: 28
Hi Prashant!,

To make a focus in a particular cell, the below code could help,




try the below code to point the cursor in the particular cell.

<Tablename>.editCellAt(row,column);

Hope, It could help u

PrasannA

[ June 09, 2006: Message edited by: prasanna kanth ]
[ June 09, 2006: Message edited by: prasanna kanth ]
 
I agree. Here's the link: http://jrebel.com/download
 
subject: how to set focus on cell of table
 
Similar Threads
JTable showing data that isn't there...
Traversing the table using arrow keys
how to check value of cell in JTable
JTable
Focus on a specified cell