File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTee Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTee" Watch "JTee" New topic



Joined: Sep 21, 2001
Posts: 17
i have used my own TreeModel by extending TreeModel class, its reprsenting the tree nodes well, i have given my own functionality for deletion as its my TreeModel, but when i delete any node its not getting deleted the same moment.
Instead when i collapse and again expand the Parent Node (from which i deleted the Child Node) then it shows that the Child node has been deleted. I have also tried using Validate() and Paint() funtions as well, but of no use.
please help me soon. Thanks in advance
Matt Hansen
Ranch Hand

Joined: Jul 31, 2001
Posts: 34
You should take a look at this example from Sun:
There is code for removing a node from a tree. It can be found on that page or here:
I agree. Here's the link:
subject: JTee
It's not a secret anymore!