aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes automatically position the cursor in a particularcell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "automatically position the cursor in a particularcell" Watch "automatically position the cursor in a particularcell" New topic
Author

automatically position the cursor in a particularcell

Iskandar Wahab
Greenhorn

Joined: Aug 06, 2001
Posts: 1
I have created a table to be used with JDBC. due to some restrictions i must not use scrollbars and mouse to select cells in this table. I have managed to traverse the table by using button clicks. The question is how do i programmatically position the cursor on a single cell ONLY when the row in which the cell resides is selected.
can anyone help me please.
Thanks a lot.
Sayuri Coppinger
Greenhorn

Joined: Jun 06, 2001
Posts: 20
I am not sure I follow your question completely, but to select a single cell, you need to call the setCellSelectionEnabled() method on the table, and to move the selection to a different cell, you can use the changeSelection(...) method
[This message has been edited by Sayuri Coppinger (edited August 11, 2001).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: automatically position the cursor in a particularcell