This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
tc.add(panel, java.awt.BorderLayout.CENTER);
tc.setName(title);
tc.getAccessibleContext().setAccessibleDescription(panel.getAccessibleContext().getAccessibleDescription());
Workspace workspace = WindowManager.getDefault().getCurrentWorkspace();
Mode myMode = workspace.findMode(CommandOutputVisualizer.MODE_NAME);
if (myMode == null) {
// create new mode for CI and set the bounds properly
String modeName = org.openide.util.NbBundle.getBundle(CommandOutputVisualizer.class).getString("CommandOutputVisualizer.modeName");
myMode = workspace.createMode(CommandOutputVisualizer.MODE_NAME, modeName, null); //NOI18N
}
myMode.dockInto(tc);
tc.open();
tc.requestFocus();