Join « JProgressBar « Java Swing Q&A





1. Thread.join freezes progressbar    stackoverflow.com

I have a code which uses a thread to run multiple progress bar.

Thread thread1 = new Thread(progressbar1);
thread1.start(); 
thread2.start()
And so on. After I have
thread1.join(); 
thread2.join(); 
thread3.join();
But that freezes all three progress ...

2. Swing GUI With Progress Bar Threaded Joins    java-forums.org

class demuxThread extends Thread { public demuxThread() { } public void run() { while(true) { Progress frame = new Progress(); frame.pack(); frame.setSize(190, 60); frame.setVisible(true); try { Runtime r = Runtime.getRuntime(); String cmd[] = { "ping" , "www.google.com" }; Process p = r.exec(cmd ); BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream())); String lineRead =null; StringBuffer foo = new StringBuffer(""); outputArea.setText("initializing..."); demuxProgressBar.setIndeterminate(true); while( (lineRead ...