This content has been marked as final.
Show 1 reply
-
1. Re: Sorted TreeNodes
pbaker01 Aug 19, 2007 4:03 PM (in response to pbaker01)Never mind.. I should have thought this out before posting...
@SuppressWarnings("unchecked") public Iterator getChildren() { ArrayList<Map.Entry<Object, TreeNode>> carrierList = new ArrayList<Map.Entry<Object, TreeNode>>(getCarriers().entrySet()); Collections.sort( carrierList, new CarrierTreeNodeComparitor() ); return carrierList.iterator(); }