Results 1 to 2 of 2
Thread: Update JTree
- 01-04-2011, 06:18 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
Update JTree
Hi all,
I have a JTree using a custom model (which extends DefaultTreeModel), and the elements in the JTree are editable.
In my custom model, the method 'valueForPathChanged' is being called and I am successfully updating the backend database.
However, the JTree is not being updated with the new value. I am getting myself confused as to how this should take place - what method I should call or if a listener should be implemented or if I should be firing an event.
Can someone straighten me out and tell me what the next step should be so the JTree is updated.
Thanks!
Dave
- 01-09-2011, 04:24 AM #2
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
db
Similar Threads
-
Jtree Help
By miladirooni in forum New To JavaReplies: 1Last Post: 10-28-2009, 12:00 AM -
zip to JTree
By icsbcn in forum AWT / SwingReplies: 8Last Post: 09-01-2009, 04:26 PM -
Move JTree item to another JTree.
By Melki in forum AWT / SwingReplies: 8Last Post: 07-09-2009, 11:59 AM -
JTree Popup
By jiexx in forum New To JavaReplies: 1Last Post: 03-24-2009, 01:58 AM -
Custom JTree
By guyjasper in forum AWT / SwingReplies: 0Last Post: 10-20-2008, 04:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks