1. Thread.join freezes progressbar stackoverflow.comI have a code which uses a thread to run multiple progress bar.
And so on. After I have
But that freezes all three progress ... |
2. Swing GUI With Progress Bar Threaded Joins java-forums.orgclass 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 ... |