Hi Michael
The table maintains two selection models: one for the row selection (accessible
through ULCTable.getSelectionModel()) and one for the column selection
(accessible through ULCTable.getColumnModel().getSelectionModel()).
So, you need to register two selection listeners:
table.getSelectionModel().addListSelectionListener(
new IListSelectionListener() {
public void valueChanged(ListSelectionEvent event) {
System.out.println("Row selection changed");
}
});
table.getColumnModel().getSelectionModel().addListSelectionListener(
new IListSelectionListener() {
public void valueChanged(ListSelectionEvent event) {
System.out.println("Column selection changed");
}
});
I hope this helps.
Cheerio
Rolf
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brohl Michael
Sent: Donnerstag, 29. Juni 2006 11:57
To: [email protected]
Subject: [ULC-developer] (no subject)
Hi everyone,
is there a relatively simple way to recognize cell/column selection inside the
same row?
The SelectionModel only fires an event if the row selection changes. If I click
on a table cell in the same row, nothing happens (as documented).
Thanks and regards,
Michael P°z÷¥¢«¨¥x%ËT,'^½éh¥êåËlq©è¡Ê&Ûiÿùb²Ûjz(r¿¨¥©ÿ+-wèþé\uëÞ^