public void setProgressBar(JComponent cmpt) {
        if (cmpt instanceof JProgressBar)
            progressBar = (JProgressBar)cmpt;
        else
            throw new IllegalArgumentException("Provided component was not a JProgressBar!");
    }