SwingUtilities.invokeLater(new Runnable() { public void run() { classesProgress.setValue(classesProgress.getValue() + 1); } });
step();
        public void finishClass() {            SwingUtilities.invokeLater(new Runnable() {                public void run() {                    classesProgress.setValue(classesProgress.getValue() + 1);                }            });        }