How to enforce the selection of a JTable row

Hi,How can i enforce the selection of a row in a JTable like in a JList ?thx
[97 byte] By [Oleka] at [2007-11-27 4:54:22]
# 1
No idea what you mean. Row selection is enabled by default in a JTable. They both use the ListSelectionModel. So whatever you can do in a JList you can do in a JTable.
camickra at 2007-7-12 10:08:59 > top of Java-index,Desktop,Core GUI APIs...
# 2
the method setSelectedRow is not implemented in JTable
Oleka at 2007-7-12 10:08:59 > top of Java-index,Desktop,Core GUI APIs...
# 3
Not by that name but multiple methods do exist. There is one method to add a row selection interval and another method to set the row selection interval.
camickra at 2007-7-12 10:08:59 > top of Java-index,Desktop,Core GUI APIs...