Added output window to use it with a JTree, instead of the normal output.