这篇文章主要为大家详细介绍了Java语言实现简单FTP软件,FTP软件远程窗口的实现方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
本文为大家介绍了FTP软件远程窗口的实现方法,供大家参考,具体内容如下
1、首先看一下远程窗口的布局效果
![Java語言實作簡單FTP軟體-FTP軟體遠端視窗實作(六)](https://img.php.cn/upload/article/000/000/194/de492e2375f89e341bb0af0c525420c8-0.jpg)
2、看一下本地窗口实现的代码框架
![Java語言實作簡單FTP軟體-FTP軟體遠端視窗實作(六)](https://img.php.cn/upload/article/000/000/194/de492e2375f89e341bb0af0c525420c8-1.jpg)
3、远程窗口主要实现代码FtpPanel.java
package com.oyp.ftp.panel.ftp;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.LinkedList;
import java.util.Queue;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ActionMap;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
import javax.swing.Timer;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;
import javax.swing.table.TableStringConverter;
import sun.net.TelnetInputStream;
import com.oyp.ftp.FTPClientFrame;
import com.oyp.ftp.panel.FTPTableCellRanderer;
import com.oyp.ftp.utils.FtpClient;
import com.oyp.ftp.utils.FtpFile;
public class FtpPanel extends javax.swing.JPanel {
FtpClient ftpClient;
private javax.swing.JButton createFolderButton;
private javax.swing.JButton delButton;
private javax.swing.JButton downButton;
javax.swing.JTable ftpDiskTable;
private javax.swing.JLabel ftpSelFilePathLabel;
private javax.swing.JScrollPane scrollPane;
private javax.swing.JToolBar toolBar;
private javax.swing.JButton refreshButton;
private javax.swing.JButton renameButton;
FTPClientFrame frame = null;
Queue
登入後複製
以上是Java語言實作簡單FTP軟體-FTP軟體遠端視窗實作(六)的詳細內容。更多資訊請關注PHP中文網其他相關文章!