• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTree Distortion problem while nodes are added in threaded environment.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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());
}
super.nodeStructureChanged(node);
}
Problem:
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic