ToolWindow () { if (myToolWindow == null) { myToolWindow = ToolWindowManager.getInstance(myProject).registerToolWindow(GroovyBundle.message("dynamic.tool.window.id"), false, ToolWindowAnchor.RIGHT); myToolWindow.setIcon(JetgroovyIcons.Groovy.Groovy_13x13); final JPanel panel = buildBigPanel(); final ContentManager contentManager = myToolWindow.getContentManager(); final Content content = contentManager.getFactory().createContent(panel, "", false); content.setPreferredFocusableComponent(myTreeTable); contentManager.addContent(content); } return myToolWindow; }