Hi all,
I have a 2 JTables on a panel say tbl1 and tbl2. I have added a
ListSelectionListener
to both of them ... in this fashion.
...
...
tbl1.getSelectionModel().addListSelectionListener(this);
tbl2.getSelectionModel().addListSelectionListener(this);
...
...
and I'm capturing the event in the valueChanged(ListSelectionEvent lse) { }
method. How will I know which
table fired the event ??
I don't want to implement the listener as an anonymous inner class.
Please help me.
Thanks in advance.
regards
Abhay
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________