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

📄 addmoneyframe.java

📁 模拟股票交易市场设计的股票交易系统。采用软件工程思想设计
💻 JAVA
字号:
/* * addMoneyFrame.java * * Created on 2005年5月8日, 下午12:39 *//** * * @author  超级用户 */public class addMoneyFrame extends javax.swing.JFrame {    private String username=null;    /** Creates new form addMoneyFrame */    public addMoneyFrame(java.lang.String username) {        initComponents();        setSize(256,134);        this.username=username;    }        /** 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        jLabel1 = new javax.swing.JLabel();        tnum = new javax.swing.JTextField();        bok = new javax.swing.JButton();        bcancel = new javax.swing.JButton();        getContentPane().setLayout(null);        setTitle("\u8bf7\u8f93\u5165\u4f60\u8981\u6c47\u5165\u7684\u91d1\u989d");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        jLabel1.setText("\u6c47\u5165\u91d1\u989d");        getContentPane().add(jLabel1);        jLabel1.setBounds(50, 30, 60, 18);        getContentPane().add(tnum);        tnum.setBounds(130, 30, 90, 22);        bok.setText("\u786e\u5b9a");        bok.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                bokActionPerformed(evt);            }        });        getContentPane().add(bok);        bok.setBounds(50, 80, 60, 28);        bcancel.setText("\u53d6\u6d88");        getContentPane().add(bcancel);        bcancel.setBounds(150, 80, 59, 28);        pack();    }//GEN-END:initComponents    private void bokActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bokActionPerformed        //请在此处增加您的处理代码:            }//GEN-LAST:event_bokActionPerformed        /** Exit the Application */    private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm        System.exit(0);    }//GEN-LAST:event_exitForm        /**     * @param args the command line arguments     */    public static void main(String args[]) {        new addMoneyFrame("wffwf").show();    }            // 变量声明 - 不进行修改//GEN-BEGIN:variables    private javax.swing.JButton bcancel;    private javax.swing.JButton bok;    private javax.swing.JLabel jLabel1;    private javax.swing.JTextField tnum;    // 变量声明结束//GEN-END:variables    }

⌨️ 快捷键说明

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