我需要做的是..点击一个按钮做两件事1.做一些后台任务2.当这正在进行时,在新窗口中显示一个不确定的进度条。我知道我需要多线程来完成这个任务。public void mouseDown(MouseEvent e) {p.caller();p.closeprogress();Progressbar类
public class pbar
是否有任何方法使进度条加载为shell脚本或shell命令运行?didEndSelector:(missing value) contextInfo:(missing value)set hardwareData to do shellscript "system_profiler SPHardwareDataType"
she
while true puts resultend在运行计算时,必须更新进度条状态(pbar.increment)。在shell中,我以如下方式执行我的程序:发行
使用pbar会被刷新到stdout,因此prograss-bar被重定向到dfs_results.txt如果没有pbar,结果数据将按预期