基于java_ATM机_银行存取款系统的设计与实现(含源文件) 联系客服

发布时间 : 星期四 文章基于java_ATM机_银行存取款系统的设计与实现(含源文件)更新完毕开始阅读1f1a06b3f5335a8103d2200f

e1.printStackTrace(); } Lsvo lvo=new Lsvo(); lvo.setHuming(hm); lvo.setCaozuo(\存款\+Integer.parseInt(t1.getText())); List list = null; try { list = new Yhdao().ff(); } catch (ClassNotFoundException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } for(int i=0;i

import javax.swing.JTextField; import dao.Lsdao; import dao.Yhdao; import vo.Lsvo; import vo.Yhvo;

//用户取款小窗口

public class Qkact extends JFrame implements ActionListener{ private static final long serialVersionUID = -1643869494402974271L; JFrame f=new JFrame(\用户取款界面\); JLabel l1 = new JLabel(\取款金额\); JTextField t1 = new JTextField(10); JButton JB1 = new JButton(\取款\); String hm;String mm;

public void ff(String hm,String mm){ this.hm=hm; this.mm=mm; f.add(l1); l1.setBounds(90,70,80,30); f.add(t1); t1.setBounds(160,70,100,30); f.add(JB1); JB1.setBounds(140,130,80,30); JB1.addActionListener(this);

29

f.setBounds(400,150,385,250); f.setLayout(null); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); f.setVisible(true); }

//public static void main (String[]agrs){ //Qkact c=new Qkact(); //c.ff(\ // } @Override

public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub Yhvo yvo=new Yhvo(); yvo.setHuming(hm); yvo.setMima(mm); yvo.setYue(-Integer.parseInt(t1.getText())); try { Yhdao.ff2(yvo,3); } catch (ClassNotFoundException e3) { // TODO Auto-generated catch block e3.printStackTrace(); } catch (SQLException e3) { // TODO Auto-generated catch block e3.printStackTrace(); } Lsvo lvo=new Lsvo(); lvo.setHuming(hm); lvo.setCaozuo(\取款\+Integer.parseInt(t1.getText())); List list = null; try { list = new Yhdao().ff(); } catch (ClassNotFoundException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } for(int i=0;i

30

lvo.setYue(list.get(i).getYue()); //list.get(i).getYue(); }

package action; //zhuanzhang

import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.sql.SQLException; import java.util.List;

import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField;

import dao.Lsdao; import dao.Yhdao;

import vo.Lsvo; import vo.Yhvo;

public class Zzact extends JFrame implements ActionListener{ private static final long serialVersionUID = -8838030643284973946L; //用户转账窗口 JFrame f=new JFrame(\用户转账界面\); JLabel l1 = new JLabel(\对方户名\); JTextField t1 = new JTextField(10); JB1.setBounds(140,170,80,30); JB1.addActionListener(this); f.setBounds(400,150,385,290); f.setLayout(null); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); f.setVisible(true); }

//public static void main (String[]agrs){ //Zzact c=new Zzact(); //c.ff(\

31

//} @Override

public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub Yhvo yvo=new Yhvo(); Yhvo yvo2=new Yhvo(); yvo.setHuming(t1.getText()); yvo2.setHuming(hm); yvo.setMima(\); yvo2.setMima(\); yvo2.setYue(-Integer.parseInt(t2.getText())); yvo.setYue(Integer.parseInt(t2.getText())); try { Yhdao.ff2(yvo,3); } catch (ClassNotFoundException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } Lsvo lvo=new Lsvo(); lvo.setHuming(t1.getText()); lvo.setCaozuo(\从账户\+hm+\转入\+Integer.parseInt(t2.getText())+\元\); List list = null; try { list = new Yhdao().ff(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } for(int i=0;i

32