Java Reference
In-Depth Information
"Error"
+
ex
,
"Error"
,
JOptionPane
.
ERROR_MESSAGE
);
}
}
}.
start
();
}
public
public
void
void
doWait
() {
iif
(
pStack
.
size
() ==
0
)
return
return
;
Debug
.
println
(
"trace"
,
"Waiting for process "
+
pStack
.
size
());
try
try
{
pStack
.
peek
().
waitFor
();
// wait for process to complete
// (may not work as expected for some old Windows programs)
Debug
.
println
(
"trace"
,
"Process "
+
pStack
.
size
() +
" is done"
);
}
catch
catch
(
Exception ex
) {
JOptionPane
.
showMessageDialog
(
this
this
,
"Error"
+
ex
,
"Error"
,
JOptionPane
.
ERROR_MESSAGE
);
}
pStack
.
pop
();
}
}