String errMsg = validateInput();
if (errMsg.isEmpty()) {
resetProgress();
TabPageController tabController = new TabPageController(AnalysisType.COUNTS_QC);
CountsQCAnalysisThread t = new CountsQCAnalysisThread(this, tabController );
t.start();
} else {
JOptionPane.showMessageDialog(this, errMsg, "Validate Input", JOptionPane.ERROR_MESSAGE);
}
} else {
updateState();