【发布时间】:2013-12-25 21:13:21
【问题描述】:
我的程序是一个文件管理器,当我点击暂停按钮时,我想暂停一个频道到频道复制文件。 我的复制方法
fcin = new FileInputStream(source.getPath().replace("\\", "/")).getChannel();
fcout = new FileOutputStream(dest.getPath().replace("\\", "/")).getChannel();
processValue value = new processValue(bar, source, dest);
Thread t1 = new Thread(value);
t1.start();
this.setVisible(true);
fcin.transferTo(0, fcin.size(), fcout);
retVal = true;
并且 t1 用于此过程的 JProgressBar。你能帮帮我吗?
【问题讨论】: