Hiding expand/collapse +/- buttons
Is i开发者_C百科t 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).
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);
精彩评论