第一范文网 - 专业文章范例文档资料分享平台

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

来源:用户分享 时间:2025/9/4 15:22:11 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

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

JAVA课程设计-银行存取管理系统(所有代码).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c6vs518nt1y0zn001pb9w_8.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top