SwingWorker not responding
What I am trying to do ? At the click of the Start JButton , the SwingWorker will execute. Inside the doInBackground() method, I am passing each index of arrNames , to the publish() method, so that it can be displayed inside the JTextArea . What happened ? If I do not keep line System.out.format("Counter : %d%n", counter); as a comment , in my doInBackground() method of the SwingWorker , then the SwingWorker is working as expected . Though if I comment it out , then the SwingWorker stops responding . Am I doing something wrong ? Java Version : java version "1.7.0_25" Java(TM) SE Runtime