check cell selection status in table from selection model

Hello,

I want to check in myListSelectionListener at thevalueChanged(ListSelectionEvent e) ifcellSelectionEnabled in the containing table.

Is there a way to get this data in the listener other then giving a reference to the table when the selection listener is added.

Sorry if I'm asking a question that was asked before, I didn't find it, I'd be happy if you point me at the right direction

Noa

[453 byte] By [Noaa] at [2007-11-26 16:12:47]
# 1
I have time for everyone.Try using e.getSource().
Rodney_McKaya at 2007-7-8 22:35:28 > top of Java-index,Desktop,Core GUI APIs...
# 2
As far as I could see the source is the selection model
Noaa at 2007-7-8 22:35:28 > top of Java-index,Desktop,Core GUI APIs...
# 3
You're right. I was lazy and checked it on a JList...If your ListSelectionListener is an inner class of your JTable you can access your JTable in the valueChanged function.
Rodney_McKaya at 2007-7-8 22:35:28 > top of Java-index,Desktop,Core GUI APIs...
# 4
That's not the case.But never mind, I already transfer data to the listener when it's created, no reason to be lazy and avoid transferring one more
Noaa at 2007-7-8 22:35:28 > top of Java-index,Desktop,Core GUI APIs...
# 5
It's not a matter of being lazy or not.If your listener is not an inner class you have no choice.
Rodney_McKaya at 2007-7-8 22:35:28 > top of Java-index,Desktop,Core GUI APIs...