Hi
!
Look
at the API for JTable. You can do the following
to
mark one, or several rows, programmatically:
JTable yourTable = ...
int
from = ...
int to
= ...
yourTable.getSelectionModel().addSelectionInterval(from,
to)
Hope
it helps...
/stefan
____________________________________________________-----Ursprungligt meddelande-----Hello all,
Fr�n: abhay [mailto:[EMAIL PROTECTED]]
Skickat: den 20 januari 2003 08:03
Till: JDJList
�mne: [jdjlist] focus on a cell of JtableCan we programatically set the focus on a cell of a
JTable (in jdk1.3) ?I tried using editCellAt(row,column). It works fine if
the cell is editable... but fails when the
isCellEditable(EventObject eo) returns false.Can anybody suggest any soln/workaround for this problem ?
Thanks in advance.
regards
abhay ____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
