EarthWeb
Developer.com
Site
windows 2000
visual c++
java
visual basic
javascripts
recommend it
 
Book
thinking in java
 
Interact
forum
guest book
jobs
jokes
what's new

share code
 
Resource
add resource
modify resource
new resource
 

[Internet Jobs]
-----
Java by E-mail:

Get the weekly e-mail highlights on Java!
-----

-

Selecting a cell programatically


Author: Zafir Anjum

Selecting a cell is the combination of selecting a row and a column. You have to select the row in which the cell belongs, as well as the column in which the cell belongs.


table.getSelectionModel().setSelectionInterval( row, row );
table.getColumnModel().getSelectionModel().setSelectionInterval( column, column );

Note that the selection model for column selection is accessible only through the column model.


Posted On: 9-Jan-1999

internet.commerce