JComponent () { Splitter splitter = new OnePixelSplitter(false); splitter.setSecondComponent(myUsagePreviewPanel); JBLoadingPanel loadingPanel = new JBLoadingPanel(new BorderLayout(), this, 1000); loadingPanel.add(ScrollPaneFactory.createScrollPane(myTree), BorderLayout.CENTER); splitter.setFirstComponent(loadingPanel); return splitter; }