Jtable column selection

hiI would like to click on a column header so that the whole column can be selected.
[98 byte] By [shimi1a] at [2007-10-3 9:24:19]
# 1
play with these methodsTable.setColumnSelectionAllowed(true);Table.setRowSelectionAllowed(true);
Prashant_SDNa at 2007-7-15 4:38:15 > top of Java-index,Desktop,Core GUI APIs...
# 2
Sorry it does not work.
shimi1a at 2007-7-15 4:38:15 > top of Java-index,Desktop,Core GUI APIs...
# 3
Add a MouseListener to the table header. Then use setColumnSelectionInterval(...) to select the appropriate column.
camickra at 2007-7-15 4:38:15 > top of Java-index,Desktop,Core GUI APIs...