DefaultReportDesignerContext reportDesignerContext = getContext();
final ReportRendererComponent rendererComponent = new ReportRendererComponent(reportDesignerContext, renderContext);
final String title = renderContext.getTabName();
final Icon icon = renderContext.getIcon();
final TabRenderer tabRenderer = new TabRenderer(icon, title, reportDesignerContext, editorPanes);
editorPanes.addTab(title, null, rendererComponent);
editorPanes.setTabComponentAt(editorPanes.getTabCount() - 1, tabRenderer);
editorPanes.setSelectedComponent(rendererComponent);
renderContext.addPropertyChangeListener("tabName",
new DocumentNameChangeHandler(renderContext, tabRenderer, editorPanes.getTabCount() - 1));