JAVA课程设计-银行存取管理系统(所有代码) 联系客服

发布时间 : 星期三 文章JAVA课程设计-银行存取管理系统(所有代码)更新完毕开始阅读b06635ddfad6195f302ba654

z.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); z.setBounds(200,100,700,600); z.setVisible(true); z.setResizable(false);

z.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);//窗口不能关 Container c=getContentPane(); c.setLayout(null);

c.setBackground(Color.blue); z.add(c);

JLabel label1=new JLabel(\个人账户\

JLabel label2=new JLabel(\请选择您的业务\ label1.setFont(new Font(\ label1.setForeground(Color.WHITE);

label2.setFont(new Font(\ label2.setForeground(Color.WHITE);

JButton button1=new JButton(\取 款\ JButton button2=new JButton(\修改密码\ JButton button3=new JButton(\存 款\ JButton button4=new JButton(\显示余额\ JButton button5=new JButton(\转 账\ JButton button6=new JButton(\查询修改\ JButton button7=new JButton(\退 出\ JButton button8=new JButton(\注 销\

BHandler h=new BHandler(); button1.addActionListener(h); button2.addActionListener(h); button3.addActionListener(h); button4.addActionListener(h); button5.addActionListener(h); button6.addActionListener(h); button7.addActionListener(h); button8.addActionListener(h);

JPanel p1=new JPanel(); JPanel p2=new JPanel(); JPanel p3=new JPanel(); JPanel p4=new JPanel(); JPanel p5=new JPanel(); JPanel p6=new JPanel(); JPanel p7=new JPanel();

29

JPanel p8=new JPanel(); JPanel p9=new JPanel();

p1.setBounds(0,0,700,70); p1.setBackground(Color.blue); p1.add(label1);

p2.setBounds(0,70,350,100); p2.setBackground(Color.blue); p2.add(label2);

p3.setBounds(0,170,200,80); p3.setBackground(Color.blue); p3.add(button1);

p4.setBounds(500,170,200,80); p4.setBackground(Color.blue); p4.add(button2);

p5.setBounds(0,250,200,80); p5.setBackground(Color.blue); p5.add(button3);

p6.setBounds(500,250,200,80); p6.setBackground(Color.blue); p6.add(button4);

p7.setBounds(0,330,200,80); p7.setBackground(Color.blue); p7.add(button5);

p8.setBounds(500,330,200,150); p8.setBackground(Color.blue); p8.add(button6);

p9.setBounds(0,480,700,50); p9.setBackground(Color.blue); p9.add(button7); p9.add(button8); c.add(p1); c.add(p2); c.add(p3); c.add(p4); c.add(p5); c.add(p6); c.add(p7); c.add(p8); c.add(p9);

z.setVisible(true);

}

public static void close(){ a.weiyi=false;

30

z.dispose(); }

public class BHandler implements ActionListener {

public void actionPerformed (ActionEvent event) { if(event.getActionCommand()==\取 款\ Qukuan qu=new Qukuan(z,\取款业务\

else if(event.getActionCommand()==\修改密码\

Xiugai xiugai=new Xiugai(z,\修改密码\

else if(event.getActionCommand()==\存 款\

Cunkuan cun=new Cunkuan(z,\存款业务\

else if(event.getActionCommand()==\显示余额\Xianshi xianshi=new Xianshi(z,\显示余额\else if(event.getActionCommand()==\转 账\

Zhuanzhang zhuanzhang=new Zhuanzhang(z,\转账业务\

else if(event.getActionCommand()==\查询修改\

Chaxun chaxun=new Chaxun(z,\查询修改\

else if(event.getActionCommand()==\退 出\

{a.weiyi=false; z.dispose();}

else if(event.getActionCommand()==\注 销\

{

int b=Denlu.shanchu(a.Kahao.getText()); if(b==1) {

a.weiyi=false;

JOptionPane.showMessageDialog(Zhuye.this,\注销成功!\ z.dispose(); }

else if(b==2)

JOptionPane.showMessageDialog(Zhuye.this,\请取出剩余的钱在注销!\

else

JOptionPane.showMessageDialog(Zhuye.this,\系统错误!\ } } } }

有什么不懂的就联系我 QQ 1161451497

五 软件的整体规划

登录界面

31

用户业务界面

32