java Swing Listeners: components listening at each others.
Posted
by Pierre
on Stack Overflow
See other posts from Stack Overflow
or by Pierre
Published on 2010-04-24T15:40:03Z
Indexed on
2010/04/24
15:43 UTC
Read the original article
Hit count: 220
Hi all, I want to code two JList (categories and items). When I click one category it should select all the items for that category and when I click on one item it should select its categories. So both JList will have a ListSelectionListener listening at each other and changing the selection.
Should I fear about some a of "loop" ? Is there a way to tell that an Event has been consumed ? how do people manage that kind of situation ?
Thanks
© Stack Overflow or respective owner