@Override public void valueChanged(MapEvent<String, Integer> e) { int index = types.indexOf(e.getKey()); nodeChanged(getChildAt(index)); }
@Override public void keyRemoved(MapEvent<String, Integer> e) { int index = types.indexOf(e.getKey()); types.remove(index); removeNodeFromParent((MutableTreeNode) getChildAt(index)); }