内容发布更新时间 : 2024/11/13 16:12:30星期一 下面是文章的全部内容请认真阅读。
商丘师范学院2012届本科毕业论文(设计)
}
//public static void main (String[]agrs){ //Ckact c=new Ckact(); //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 e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } Lsvo lvo=new Lsvo(); lvo.setHuming(hm); lvo.setCaozuo(\存款\+Integer.parseInt(t1.getText())); List 29 商丘师范学院2012届本科毕业论文(设计) } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } } package action; 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 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); f.setBounds(400,150,385,250); 30 商丘师范学院2012届本科毕业论文(设计) 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 31 商丘师范学院2012届本科毕业论文(设计) //list.get(i).getYue(); } } try { Lsdao.ff2(lvo,1); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } } 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); JLabel l2 = new JLabel(\转账金额\); JTextField t2 = new JTextField(10); JButton JB1 = new JButton(\转账\); 32