⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 receiver.java

📁 一个从ITPUB论坛上下来的传输文件的源码,供大家一起学习使用
💻 JAVA
字号:
/* * receiver.java * * Created on 2004年12月8日, 下午9:26 *//** * * @author  gzy-gs */public class receiver extends javax.swing.JFrame {    private int count;    /** Creates new form receiver */    public receiver() {              initComponents();    }        /** This method is called from within the constructor to     * initialize the form.     * WARNING: Do NOT modify this code. The content of this method is     * always regenerated by the Form Editor.     */    private void initComponents() {//GEN-BEGIN:initComponents        jProgressBar1 = new javax.swing.JProgressBar();        jLabel1 = new javax.swing.JLabel();        getContentPane().setLayout(null);        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);        setBackground(new java.awt.Color(204, 204, 255));        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        jProgressBar1.setBackground(new java.awt.Color(153, 0, 255));        jProgressBar1.setStringPainted(true);        getContentPane().add(jProgressBar1);        jProgressBar1.setBounds(10, 60, 270, 20);        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);        jLabel1.setText("\u5df2\u63a5\u6536");        getContentPane().add(jLabel1);        jLabel1.setBounds(100, 20, 80, 18);        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();        setBounds((screenSize.width-300)/2, (screenSize.height-150)/2, 300, 150);    }//GEN-END:initComponents        /** Exit the Application */    private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm        System.exit(0);    }//GEN-LAST:event_exitForm        public void set(int i){        count=i;        jProgressBar1.setValue(count);    }    /**     * @param args the command line arguments     */    public static void main(String args[]) {        new receiver().show();    }        // 变量声明 - 不进行修改//GEN-BEGIN:variables    private javax.swing.JLabel jLabel1;    private javax.swing.JProgressBar jProgressBar1;    // 变量声明结束//GEN-END:variables    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -