资源简介

新手项目实战,分享下源代码,程序可以直接运行,做得不好可以多多指教

资源截图

代码片段和文件信息

package netbar;

import javax.swing.Jframe;
import javax.swing.JPanel;
import java.awt.*;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class AddAssociator extends Jframe {
    AddAssociatorDate add=new AddAssociatorDate();
    public AddAssociator() {
        try {
            jbInit();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.getContentPane().setLayout(null);
        jPanel1.setBorder(BorderFactory.createEtchedBorder());
        jPanel1.setBounds(new Rectangle(56 37 68 31));
        jPanel6.setBorder(BorderFactory.createEtchedBorder());
        jPanel6.setBounds(new Rectangle(56 219 68 31));
        jPanel5.setBorder(BorderFactory.createEtchedBorder());
        jPanel5.setBounds(new Rectangle(56 183 68 31));
        jPanel4.setBorder(BorderFactory.createEtchedBorder());
        jPanel4.setBounds(new Rectangle(56 110 68 31));
        jPanel3.setBorder(BorderFactory.createEtchedBorder());
        jPanel3.setBounds(new Rectangle(56 146 68 31));
        jButton1.setBounds(new Rectangle(117 262 72 30));
        jButton1.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jButton1.setText(“提交“);
        jButton1.addActionListener(new AddAssociator_jButton1_actionAdapter(this));
        jButton2.setBounds(new Rectangle(228 262 72 30));
        jButton2.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jButton2.setText(“重置“);
        jButton2.addActionListener(new AddAssociator_jButton2_actionAdapter(this));
        this.settitle(“添加会员“);
        txtMoney.setFont(new java.awt.Font(“Dialog“ Font.BOLD 15));
        txtSex.setFont(new java.awt.Font(“Dialog“ Font.BOLD 15));
        txtCardId.setFont(new java.awt.Font(“Dialog“ Font.BOLD 15));
        txtCardId.setEditable(false);
        txtPassword.setFont(new java.awt.Font(“Dialog“ Font.BOLD 15));
        txtAddress.setFont(new java.awt.Font(“Dialog“ Font.BOLD 15));
        txtEMail.setFont(new java.awt.Font(“Dialog“ Font.BOLD 15));
        this.getContentPane().add(jPanel1);
        jLabel2.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jLabel2.setText(“密码:“);
        jLabel3.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jLabel3.setText(“地址:“);
        jLabel4.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jLabel4.setText(“性别:“);
        jLabel5.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jLabel5.setText(“邮箱:“);
        jLabel6.setFont(new java.awt.Font(“楷体_GB2312“ Font.BOLD 15));
        jLabel6.setText(“金额:“);
        txtCardId.setBounds(new Rectangle(134 38 95 28));
        txtPassword.setBounds(new Rectangle(134 75 160 28));
        txtSex.setBounds(new Rectangle(134 111 91 28));
        txtAddress.setBounds(new Rectangle(134 147 235 28));
  

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

     文件        232  2008-03-02 12:29  NetBar\.classpath

     文件        382  2008-03-02 12:29  NetBar\.project

     文件       5812  2008-03-10 20:02  NetBar\bin\netbar\AddAssociator.class

     文件       2496  2008-03-10 20:02  NetBar\bin\netbar\AddAssociatorDate.class

     文件        694  2008-03-10 20:02  NetBar\bin\netbar\AddAssociator_jButton1_actionAdapter.class

     文件        694  2008-03-10 20:02  NetBar\bin\netbar\AddAssociator_jButton2_actionAdapter.class

     文件       6601  2008-03-10 20:02  NetBar\bin\netbar\AddManager.class

     文件       2514  2008-03-10 20:02  NetBar\bin\netbar\AddManagerDate.class

     文件        676  2008-03-10 20:02  NetBar\bin\netbar\AddManager_jButton1_actionAdapter.class

     文件        676  2008-03-10 20:02  NetBar\bin\netbar\AddManager_jButton2_actionAdapter.class

     文件       4016  2008-03-10 20:02  NetBar\bin\netbar\AddPrice.class

     文件       2308  2008-03-10 20:02  NetBar\bin\netbar\AddPriceDate.class

     文件        655  2008-03-10 20:02  NetBar\bin\netbar\AddPrice_btnOK_actionAdapter.class

     文件        664  2008-03-10 20:02  NetBar\bin\netbar\AddPrice_btnReset_actionAdapter.class

     文件       2250  2008-03-10 20:02  NetBar\bin\netbar\Balance.class

     文件       1797  2008-03-10 20:02  NetBar\bin\netbar\BalanceDate.class

     文件       3255  2008-03-10 20:02  NetBar\bin\netbar\Delete.class

     文件       3123  2008-03-10 20:02  NetBar\bin\netbar\DeleteAssociator.class

     文件       2059  2008-03-10 20:02  NetBar\bin\netbar\DeleteAssociatorDate.class

     文件        703  2008-03-10 20:02  NetBar\bin\netbar\DeleteAssociator_btnOK_actionAdapter.class

     文件       2236  2008-03-10 20:02  NetBar\bin\netbar\DeleteDate.class

     文件        652  2008-03-10 20:02  NetBar\bin\netbar\Delete_jButton1_actionAdapter.class

     文件       3827  2008-03-10 20:02  NetBar\bin\netbar\DisplayConsumeCase.class

     文件       3978  2008-03-10 20:02  NetBar\bin\netbar\DoneNetting.class

     文件       5565  2008-03-10 20:02  NetBar\bin\netbar\DoneNettingDate.class

     文件        697  2008-03-10 20:02  NetBar\bin\netbar\DoneNettingDate_btnOK_actionAdapter.class

     文件        706  2008-03-10 20:02  NetBar\bin\netbar\DoneNettingDate_btnReset_actionAdapter.class

     文件       1508  2008-03-10 20:02  NetBar\bin\netbar\GetTime.class

     文件       1481  2008-03-10 20:02  NetBar\bin\netbar\Help.class

     文件       5313  2008-03-10 20:02  NetBar\bin\netbar\LandingOfManager.class

............此处省略101个文件信息

评论

共有 条评论