[Closes #44] Improved the way trees are updated in swing.