JComponent () { BorderLayoutPanel rootPanel = JBUI.Panels.simplePanel(UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP); if (myRootLabel != null) { rootPanel.addToTop(myRootLabel); } rootPanel.addToCenter(myTextEditor); return rootPanel; }