java_ATM机银行存取款系统的设计与实现本科毕业论文 - 百度文库

ݷʱ : 2024/11/14 15:06:13һ µȫĶ

ʦѧԺ2012챾Ʊҵģƣ

String hm;

public void ff(String hm){ this.hm=hm; f.add(l1); l1.setBounds(90,50,80,30); f.add(t1); t1.setBounds(160,50,100,30); f.add(l2); l2.setBounds(90,100,80,30); f.add(t2); t2.setBounds(160,100,100,30); f.add(JB1); 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(\ //} @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();

33

ʦѧԺ2012챾Ʊҵģƣ

} 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

} catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }

try { Yhdao.ff2(yvo2,3);

} catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }

Lsvo lvo2=new Lsvo(); lvo2.setHuming(hm);

lvo2.setCaozuo(\˻\+t1.getText()+\ת\+Integer.parseInt(t2.getText())+\Ԫ\); List list2 = null;

34

ʦѧԺ2012챾Ʊҵģƣ

try { list2 = 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

package action;

import java.awt.TextArea;

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 vo.Lsvo; import dao.Lsdao;

//ûʷ

public class Lsact extends JFrame implements ActionListener{

35

ʦѧԺ2012챾Ʊҵģƣ private static final long serialVersionUID = 1L; JFrame f=new JFrame(\ûʷѯ\); TextArea t=new TextArea(15,130); //setWrapStyleWord();

JButton JB1 = new JButton(\ѯ\); String hm;

public void ff(String hm){ this.hm=hm; f.add(t); f.add(JB1); JB1.addActionListener(this); JB1.setBounds(290,260,60,30); t.setBounds(50,50,600,200); f.setBounds(400,150,700,350); f.setLayout(null); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); f.setVisible(true); }

//public static void main (String[]agrs){ // Lsact l=new Lsact(); //l.ff(\ //}

@Override

public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub List list=null; try { list = new Lsdao().ff(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } StringBuffer sb = new StringBuffer(); System.out.println(list); //SimpleDateFormat f=new SimpleDateFormat(\ sb.append(\˻ \ + \ʱ 36

\ +\

ϵͷ779662525#qq.com(#滻Ϊ@) ICP20003344-4 ceshi