Added a scrollPane so that the tree panel wont expand.