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

yhx

上级 c9eaa604
...@@ -73,14 +73,14 @@ public class FtpPanel extends JPanel implements ActionListener, MouseList ...@@ -73,14 +73,14 @@ public class FtpPanel extends JPanel implements ActionListener, MouseList
private boolean listFiles() { private boolean listFiles() {
list=FileView.viewFile(ftpClient); list=FileView.viewFile(ftpClient);
dtmFile.setRowCount( 0 ); dtmFile.setRowCount( 0 );
if(list.size()>0){ if(list!=null){if(list.size()>0){
for(int i=1;i<=list.size();i++){ for(int i=1;i<=list.size();i++){
dtmFile.addRow( new String[]{list.get(i).name, sizeFormat(list.get(i).size) , list.get(i).type , new SimpleDateFormat("yyyy年MM月dd日").format(list.get(i).date.getTime())}); dtmFile.addRow( new String[]{list.get(i).name, sizeFormat(list.get(i).size) , list.get(i).type , new SimpleDateFormat("yyyy年MM月dd日").format(list.get(i).date.getTime())});
} }
return true; return true;
} }}
return false; return false;
} }
......
...@@ -56,7 +56,7 @@ public class listPanel extends JPanel ...@@ -56,7 +56,7 @@ public class listPanel extends JPanel
private boolean listFiles() { private boolean listFiles() {
List<Transport_info> list=task.getTasklist(); List<Transport_info> list=task.getTasklist();
dtmFile.setRowCount( 0 ); dtmFile.setRowCount( 0 );
if(list.size()>0){ if(list!=null){if(list.size()>0){
for(int i=0;i<list.size();i++){ for(int i=0;i<list.size();i++){
if(list.get(i).direction){ if(list.get(i).direction){
dtmFile.addRow(new String[]{list.get(i).filepath_local," <-- ",list.get(i).filepath,sizeFormat(list.get(i).fileSize)," 正常 "}); dtmFile.addRow(new String[]{list.get(i).filepath_local," <-- ",list.get(i).filepath,sizeFormat(list.get(i).fileSize)," 正常 "});
...@@ -67,7 +67,7 @@ public class listPanel extends JPanel ...@@ -67,7 +67,7 @@ public class listPanel extends JPanel
} }
return true; return true;
} }}
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册