BorderLayoutPanel (BorderLayoutPanel mainPanel, Tree tree) { JComponent toolbar = createToolbar(mainPanel, tree); tree.setBackground(UIUtil.getToolTipBackground()); toolbar.setBackground(UIUtil.getToolTipActionBackground()); new WindowMoveListener(mainPanel).installTo(toolbar); return mainPanel.addToCenter(ScrollPaneFactory.createScrollPane(tree, true)).addToBottom(toolbar); }