tags:

views:

16

answers:

1

Is it possible to hide the +/- buttons for an ICEFaces tree node that is a leaf? They still appear on my leaf nodes even when I mark that node specifically as a leaf and say node.setAllowsChildren(false).

A: 

You should create an IceUserObject and use it as user object.

DefaultMutableTreeNode node = new DefaultMutableTreeNode();
IceUserObject userObject = new IceUserObject(node);
userObject.setLeaf(true);
node.setUserObject(userObject);
Adam