alert treemodel that a listmodel changed
- From: Brandon McCombs <none@xxxxxxxx>
- Date: Mon, 27 Feb 2006 03:19:24 GMT
hello,
I have a jtree with a treemodel on one side of a splitpane and a jlist with a listmodel on the other side of the same splitpane. When an entry in the listmodel is deleted I want to alert the treemodel to refresh itself to show that the entry was removed (listmodel shows individual entries of the containers in the treemodel, like a folder/file relationship in a file system).
I have contentsChanged() implemented for the treemodel and have added the jtree as a listdatalistener for the listmodel but yet when I remove an entry in the listmodel the treemodel doesn't automatically refresh and if I attempt to do it manually (by collapsing/expanding the node that had its entry deleted) the app stops responding. Why wouldn't the listmodel be firing the contentsChanged event for the treemodel to catch? Any ideas?
thanks
.
- Prev by Date: Launch of User Interface Community
- Next by Date: how to focus persistent on JTExtField
- Previous by thread: Launch of User Interface Community
- Next by thread: how to focus persistent on JTExtField
- Index(es):
Relevant Pages
|