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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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://aspose.com/file-tools
 
subject: how to set focus on cell of table