boolean wasShowing = false;
if (testCaseTable != null) {
wasShowing = testCaseTable.isShowing();
testCaseTable.close();
}
testCaseTable = new TestCaseTable((TestCaseProblem<Object>) gui.getExperiment().getProblem(), gui);
if (wasShowing) {
testCaseTable.show();
}
}