How to add more selections on a table?

I have a table which added a ListSelectionListener. First column are the ages, when user selected on a row (or rows) , I want all the rows which has the same age as user selected will be selected(highlighted). How do i do that ? My problem is each time when i use table.addRowSelectionInterval(i, i) it will trickers valueChanged(ListSelectionEvetn e) again and it goes on and on. Can anybody tell me how do i solve this problem. thanks

[443 byte] By [javatablea] at [2007-10-3 8:37:54]
# 1

If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program[/url] (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags[/url] so the code retains its original formatting.

camickra at 2007-7-15 3:45:48 > top of Java-index,Desktop,Core GUI APIs...