Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tree not getting updated on Linux ??

 
Jeevan Anand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on messenger.

I am finding the different behavior when I launch the client on linux/ solaris.

When I subscribe a buddy, the buddy should appear in roster(buddy tree).

Its working on solaris, windows but not on linux(all flavours) ??

any clues ??
 
Campbell Ritchie
Sheriff
Pie
Posts: 50235
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know. But you will be more likely to get a useful answer if you Tell The Details.
 
Jeevan Anand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I will give more details:

I m working on instant messeger like gtalk, pidgin.

Once I log in using msn gateway/ aim gateway for msn user/ aim user, i get subscription request for user's buddies. If i approve request. the buddies should be added in roster (tree).

In my case, the same behavior found for windows, solaris, but linux the behavior is different. If i approve request. the buddies are not added in roster (tree). There is no exception thrown. The information about buddies added is recieved at messenger's client but buddies are not shown on UI.
[ November 09, 2008: Message edited by: Jeevan Anand ]
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What tree model are you using?
 
Jeevan Anand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JTree, with DefaultTreeModel, visitor pattern....basetreenode extending to DefaultMutableTreeNode.
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't say a thing - you're adding these nodes directly to the parent node.

If you would use your model's insertNodeInto method (and removeNodeFromParent for removing) then the model should fire the right events, and the table should get updated properly.
 
Jeevan Anand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no. I m not adding these nodes directly to root, there is a child node to tree root node , and then teh leaf nodes are added to this child node. I am not finding the leaf nodes added.
[ November 09, 2008: Message edited by: Jeevan Anand ]
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't say root, I said parent node. In other words, you are calling "parentnode.add(childnode)". If you change that to "model.insertNodeInto(parentnode, childnode, model.getChildCount(parentnode))" it should work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic