tablePanel.add(table, BorderLayout.CENTER);
mainPanel.add(tablePanel, BorderLayout.SOUTH);
JSplitPane contentPanel=null;
if (TreeCacheView2.useConsole) {
JConsole bshConsole = new JConsole();
Interpreter interpreter = new Interpreter(bshConsole);
interpreter.getNameSpace().importCommands("org.jboss.cache.util");
interpreter.setShowResults(!interpreter.getShowResults()); // show();
//System.setIn(bshConsole.getInputStream());
System.setOut(bshConsole.getOut());
System.setErr(bshConsole.getErr());
Thread t = new Thread(interpreter);
t.start();
contentPanel = new JSplitPane(JSplitPane.VERTICAL_SPLIT,mainPanel, bshConsole);
getContentPane().add(contentPanel);