how to - multple row selection with JTable

hello all

To enable multiple row selection in JTable i am using following code

but it doent work and i am able to select single row only

table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

table.setRowSelectionAllowed(true);

table.setColumnSelectionAllowed(false);

any suggestions ?

thanx in advance!!

[375 byte] By [Yogesh.Turoc3a] at [2007-11-27 1:43:34]
# 1
table.getModel().setSelectionMode(...);
J@A@V@Aa at 2007-7-12 1:01:40 > top of Java-index,Desktop,Core GUI APIs...