• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree Distortion problem while nodes are added in threaded environment.

SeethaRaman Suriyanarayanan
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
We are using JTree which has Drag and drop functionality.
The drag and drop is in threaded environment. Whenever an object is added to a node, it immediately reflects in the Tree using the tree notifications.
The code sniplet for node structure changed is,
public void nodeStructureChanged(TreeNode node) {
try {
((SDLTreeNode) node).reload();
catch(RemoteException e) {
sLogger.log(Level.SEVERE, e.getMessage(), e);
throw new RuntimeException("Error occured reloading node " + node + ": " + e.getMessage());
The problem is when the pasting is taking place the Tree gets distorted. After the pasting gets completed the tree comes to the original position.
I would like to fix this tree distortion problem.
Any suggestions in this regard will be more helpful to me.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic