116117118119120121122123124125126
public void setProgress(int percentage) { table.setValueAt(percentage+"%", row, 1); table.repaint(); } }); por.startReading(); // wait for the tool to terminate int exitCode = process.waitFor(); // increase progrss bar