File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTee

 
NIKHIL EROS
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should take a look at this example from Sun: http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#dynamic
There is code for removing a node from a tree. It can be found on that page or here: DynamicTree.java
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic