how to set the name of the node using userobjects

Posted by apoorva on Stack Overflow See other posts from Stack Overflow or by apoorva
Published on 2010-06-04T06:18:09Z Indexed on 2010/06/04 6:19 UTC
Read the original article Hit count: 244

Filed under:
|
|
|

How to set the node text.Here is the code am using

public TreeCreation(final ArrayList houseList){ Apartment= new DefaultMutableTreeNode("Apartment"); for(int i=0;i

by passing the userObject the name of the object is being displayed on the node ,how do i change the code to display h.HouseName when am using userObjects
node.getUserObject(hs.HouseName);

© Stack Overflow or respective owner

Related posts about text

Related posts about set