// Change the test indicator, before the test is done, indicating test in progress jlblTestResultDisp.setText("<html><font color = black> TESTING</font></html>");
Nothing happens at this point!
jlblTestResultDisp.validate(); jlblTestResultDisp.repaint(); this.validate(); // where 'this' refers to the jFrame this.repaint();
When the exitVal comes back from the process, which several seconds later that's only when the jFrame refreshes. until then the jFrame is just 'hanging in there', after pushing the test button nothing shows up
Runtime rt = Runtime.getRuntime(); .... Process proc = rt.exec(testScriptToRun); ... int exitVal = proc.waitFor();
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
10 Experts available now in Live!