JComponent () { myTabbedPane = new TabbedPaneWrapper(myDisposable); createConfigurableTabs(); final JComponent component = myTabbedPane.getComponent(); component.setBorder(JBUI.Borders.emptyTop(5)); component.setPreferredSize(JBUI.size(500, 400)); return component; }