我需要做的是..点击一个按钮做两件事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,结果数据将按预期
我试图让我的程序提取一个.zip文件,将它的内容放在一个文件夹中,同时在进度条中显示进度。如果我不能让进度条起作用,我也会问"Unzipper“是否可以切换到另一种形式。下面是我目前获取的提取代码: 'Create directory in which you will unzip your filesDesktop\Test\Unzipped")
'Declare the folder where