提交 e05ecebd 编写于 作者: weixin_50772964's avatar weixin_50772964

yhx

上级 b276d36c
......@@ -104,6 +104,7 @@ public class UI extends JFrame {
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
}
/*@Override
......@@ -279,5 +280,6 @@ public class UI extends JFrame {
}
......@@ -4,7 +4,6 @@ import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.text.SimpleDateFormat;
import java.util.List;
/**
......@@ -44,37 +43,13 @@ public class listPanel extends JPanel
add( new JScrollPane(jtFile), BorderLayout.CENTER);
task=t;
// 显示系统分区及文件路径 并 在JTabel中显示当前路径的文件信息
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
while(true){
{
try
{
Thread.sleep(1 * 1000); //设置暂停的时间 1秒
listFiles();
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
}
}
public void addrow(String dofile,String direct,String donefile,String size,String state){
dtmFile.addRow( new String[]{dofile,direct,donefile,size,state});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册