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

yhx

上级 be8b661c
......@@ -62,7 +62,7 @@ public class FtpPanel extends JPanel implements ActionListener, MouseList
currentPath = "/";
List<Fileinfo> list=FileView.viewFile(ftpClient);
listFiles();
}
......@@ -116,6 +116,14 @@ public class FtpPanel extends JPanel implements ActionListener, MouseList
}
}
public void clean(){
dtmFile.setRowCount( 0 );
}
public void initx(){
listFiles();
}
public String getfile1(){
int row=jtFile.getSelectedRow();
int column = 0;
......
......@@ -142,6 +142,7 @@ public class UI extends JFrame {
Global.setFTPClient(ftpClient);
if(ftpClient.isConnected()){
jTextArea.append(number+".连接成功");
ftpPanel.initx();
jTextArea.append("\n");
number++;
}else{
......@@ -178,6 +179,7 @@ public class UI extends JFrame {
number++;
}else{
ftp.Connect.closeFTPConnect(ftpClient);
ftpPanel.clean();
jTextArea.append(number+".断开连接成功");
jTextArea.append("\n");
number++;
......
......@@ -242,7 +242,7 @@ public class localPanel extends JPanel implements ActionListener, MouseLi
long kb;
if (length < 1024 )
{
return String.valueOf(length);
return (String.valueOf(length)+" bit ");
}
else if ((kb = length / 1024 ) < 1024 )
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册