• 大小: 17KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-03
  • 标签: java  文件传输  

资源简介

我自己写的小程序,希望对学java朋友有所帮助~

资源截图

代码片段和文件信息

import java.awt.EventQueue;

import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.border.EmptyBorder;


public class FileReceiver extends Jframe {

JPanel contentPane;
JLabel lblWaitingForFiles=null;
static FileReceiver frame =null;
JProgressBar fileProgressBar;

/**
 * Launch the application.
 */
public static void main(String[] args) {
frame = new FileReceiver();
frame.start();
}

public void start(){
EventQueue.invokeLater(new Runnable() {
public void run() {
try {

frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});

new Thread(new FileReceiverThread(frame)).start();
}
/**
 * Create the

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2009-12-13 16:22  文件传输\File_Send_Receive\.classpath

     文件        393  2009-12-13 19:30  文件传输\File_Send_Receive\.project

     文件        629  2009-12-13 16:22  文件传输\File_Send_Receive\.settings\org.eclipse.jdt.core.prefs

     文件        720  2009-12-13 23:57  文件传输\File_Send_Receive\bin\FileReceiver$1.class

     文件       1964  2009-12-13 23:57  文件传输\File_Send_Receive\bin\FileReceiver.class

     文件       1136  2009-12-15 14:32  文件传输\File_Send_Receive\bin\FileReceiverThread$1.class

     文件       3535  2009-12-15 14:32  文件传输\File_Send_Receive\bin\FileReceiverThread.class

     文件        708  2009-12-13 23:46  文件传输\File_Send_Receive\bin\FileSender$1.class

     文件       1131  2009-12-13 23:46  文件传输\File_Send_Receive\bin\FileSender$2.class

     文件       1183  2009-12-13 23:46  文件传输\File_Send_Receive\bin\FileSender$3.class

     文件       3165  2009-12-13 23:46  文件传输\File_Send_Receive\bin\FileSender.class

     文件       1315  2009-12-13 23:42  文件传输\File_Send_Receive\bin\FileSenderThread$1.class

     文件       2591  2009-12-13 23:42  文件传输\File_Send_Receive\bin\FileSenderThread.class

     文件       1535  2009-12-13 23:57  文件传输\File_Send_Receive\src\FileReceiver.java

     文件       2813  2009-12-15 14:32  文件传输\File_Send_Receive\src\FileReceiverThread.java

     文件       3143  2009-12-13 23:46  文件传输\File_Send_Receive\src\FileSender.java

     文件       1791  2009-12-13 23:42  文件传输\File_Send_Receive\src\FileSenderThread.java

     目录          0  2009-12-23 23:12  文件传输\File_Send_Receive\.settings

     目录          0  2009-12-23 23:12  文件传输\File_Send_Receive\bin

     目录          0  2009-12-23 23:12  文件传输\File_Send_Receive\src

     目录          0  2009-12-23 23:12  文件传输\File_Send_Receive

     目录          0  2009-12-23 23:12  文件传输

----------- ---------  ---------- -----  ----

                28053                    22


评论

共有 条评论