package com.zhou.view;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Rectangle;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import com.zhou.control.*;
import com.zhou.model.*;
import javax.swing.JOptionPane;
import java.util.Calendar;
import java.util.ArrayList;
import javax.swing.BorderFactory;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
public class JiaoYiLeiXingFrame extends JFrame {
Card card = new Card();
BackgroundImage jPanel1 = new BackgroundImage();
public JiaoYiLeiXingFrame(Card card) {
this.card = card;
NewDate newdate = new NewDate();
String date = newdate.getDate();
card.setDatetime(date);
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(null);
jPanel1.setImage("Image//444.jpg");
setSize(new Dimension(800, 600));
setTitle("交易类型");
jLabel1.setFont(new java.awt.Font("宋体", Font.PLAIN, 30));
jLabel1.setText("请 选 择 交 易 类 型");
jLabel1.setBounds(new Rectangle(240, 57, 320, 40));
jButton1.setBounds(new Rectangle(150, 160, 150, 40));
jButton1.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton1.setText("存 款");
jButton1.addActionListener(new
JiaoYiLeiXingFrame_jButton1_actionAdapter(this));
jButton2.setBounds(new Rectangle(500, 160, 150, 40));
jButton2.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton2.setText("取 款");
jButton2.addActionListener(new
JiaoYiLeiXingFrame_jButton2_actionAdapter(this));
jButton5.setBounds(new Rectangle(150, 335, 150, 40));
jButton5.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton5.setText("修改密码");
jButton5.addActionListener(new
JiaoYiLeiXingFrame_jButton5_actionAdapter(this));
jButton6.setBounds(new Rectangle(500, 335, 150, 40));
jButton6.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton6.setText("销 户");
jButton6.addActionListener(new
JiaoYiLeiXingFrame_jButton6_actionAdapter(this));
jButton7.setBounds(new Rectangle(500, 425, 150, 40));
jButton7.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton7.setText("返 回");
jButton7.addActionListener(new
JiaoYiLeiXingFrame_jButton7_actionAdapter(this));
jButton8.setBounds(new Rectangle(150, 425, 150, 40));
jButton8.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton8.setText("详 单");
jButton8.addActionListener(new
JiaoYiLeiXingFrame_jButton8_actionAdapter(this));
jButton4.addActionListener(new
JiaoYiLeiXingFrame_jButton4_actionAdapter(this));
jButton3.addActionListener(new
JiaoYiLeiXingFrame_jButton3_actionAdapter(this));
jButton4.setBounds(new Rectangle(500, 248, 150, 40));
jButton4.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton4.setText("查 询");
jButton3.setBounds(new Rectangle(150, 248, 150, 40));
jButton3.setFont(new java.awt.Font("宋体", Font.PLAIN, 22));
jButton3.setText("转 账");
jPanel1.setBounds(new Rectangle(0, 0, 800, 600));
jPanel1.setLayout(null);
this.getContentPane().add(jPanel1);
jPanel1.add(jButton8);
jPanel1.add(jButton7);
jPanel1.add(jButton6);
jPanel1.add(jButton5);
jPanel1.add(jButton4);
jPanel1.add(jButton3);
jPanel1.add(jButton2);
jPanel1.add(jButton1);
jPanel1.add(jLabel1);
}
JLabel jLabel1 = new JLabel();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
JButton jButton4 = new JButton();
JButton jButton5 = new JButton();
JButton jButton6 = new JButton();
JButton jButton7 = new JButton();
JButton jButton8 = new JButton();
ConnectionDB db = new ConnectionDB(card);
public void jButton7_actionPerformed(ActionEvent e) {
MainFrame main = new MainFrame();
main.setSize(800, 600);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = main.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
}
main.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
main.setVisible(true);
this.dispose();
}
public void jButton6_actionPerformed(ActionEvent e) {
ConnectionDB db = new ConnectionDB(card);
String sql = "select * from card where userID='" + card.getUserID() +
"'";
card.setBalance(db.select1(sql));
XiaoHuFrame xf = new XiaoHuFrame(card);
xf.setSize(800, 600);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = xf.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
}
xf.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
xf.setVisible(true);
this.dispose();
}
public void jButton4_actionPerformed(ActionEvent e) {
String sql = "select *from card where userID='" + card.getUserID() +
"'";
card.setBalance(db.select1(sql));
SelectFrame select1 = new SelectFrame(card);
select1.setSize(800, 600);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = select1.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
}
select1.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
select1.setVisible(true);
this.dispose();
}
public void jButton2_actionPerformed(ActionEvent e) {
QuKuanFrame qukuan = new QuKuanFrame(card);
qukuan.setSize(800, 600);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frameSize = qukuan.getSize();
if (frameSize.height > screenSize.height) {
frameSize.height = screenSize.height;
}
if (frameSize.width > screenSize.width) {
frameSize.width = screenSize.width;
}
qukuan.setLocation((screenSize.width - frameSize.width) / 2,
(screenSize.height - frameSize.height) / 2);
qukuan.setVisible(true);
this.dispose();
}
public void jButton5_actionPerformed(ActionEvent e) {
XiuGaiMiMaFrame xgmm = new XiuGaiMiMaFrame(card);
xgmm.setSize(800, 600);
Dimension screenSize = Toolkit.getDefaultToolkit().g
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Java ATM取款模拟系统 (301个子文件)
ZhuCeFrame.class 8KB
JiaoYiLeiXingFrame.class 8KB
YingZhengFrame.class 8KB
ZhuanZhanFrame.class 7KB
QuKuanFrame.class 7KB
CunKuanFrame.class 6KB
ConnectionDB.class 6KB
XiuGaiMiMaFrame.class 6KB
DengLuFrame.class 5KB
XiaoHuFrame.class 5KB
XiangDangFrame.class 4KB
SelectFrame.class 4KB
TiShiFrame.class 4KB
CunKuanTiShiFrame.class 4KB
MainFrame.class 4KB
ZhuanZhanTiShiFrame.class 4KB
CardFrame.class 3KB
Users.class 2KB
Trans.class 1KB
XiaoHu.class 1KB
MainApplication.class 1KB
NewDate.class 1KB
Card.class 1KB
BackgroundImage.class 1KB
Open.class 1008B
MainApplication$1.class 890B
ZhuanZhanTiShiFrame_jButton1_actionAdapter.class 765B
JiaoYiLeiXingFrame_jButton4_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton8_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton2_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton3_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton5_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton6_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton1_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton7_actionAdapter.class 759B
CunKuanTiShiFrame_jButton1_actionAdapter.class 753B
XiuGaiMiMaFrame_jButton3_actionAdapter.class 741B
XiuGaiMiMaFrame_jButton2_actionAdapter.class 741B
XiuGaiMiMaFrame_jButton1_actionAdapter.class 741B
ZhuanZhanFrame_jButton3_actionAdapter.class 735B
YingZhengFrame_jButton1_actionAdapter.class 735B
ZhuanZhanFrame_jButton1_actionAdapter.class 735B
ZhuanZhanFrame_jButton2_actionAdapter.class 735B
YingZhengFrame_jButton2_actionAdapter.class 735B
XiangDangFrame_jButton1_actionAdapter.class 735B
CunKuanFrame_jButton2_actionAdapter.class 723B
CunKuanFrame_jButton1_actionAdapter.class 723B
XiaoHuFrame_jButton2_actionAdapter.class 717B
SelectFrame_jButton1_actionAdapter.class 717B
DengLuFrame_jButton3_actionAdapter.class 717B
DengLuFrame_jButton2_actionAdapter.class 717B
QuKuanFrame_jButton1_actionAdapter.class 717B
DengLuFrame_jButton1_actionAdapter.class 717B
XiaoHuFrame_jButton1_actionAdapter.class 717B
QuKuanFrame_jButton2_actionAdapter.class 717B
ZhuCeFrame_jButton3_actionAdapter.class 711B
TiShiFrame_jButton1_actionAdapter.class 711B
ZhuCeFrame_jButton2_actionAdapter.class 711B
ZhuCeFrame_jButton1_actionAdapter.class 711B
MainFrame_jButton1_actionAdapter.class 705B
MainFrame_jButton2_actionAdapter.class 705B
CardFrame_jButton1_actionAdapter.class 705B
MainFrame_jButton3_actionAdapter.class 705B
Thumbs.db 125KB
com.zhou.view.dep2 71KB
com.zhou.control.dep2 3KB
com.zhou.model.dep2 2KB
MyATM.index 16KB
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
Desktop_.ini 8B
quaqua.jar 1.14MB
alloy.jar 321KB
liquidlnf.jar 296KB
PgsLookAndFeel-jide.jar 191KB
PgsLookAndFeel.jar 147KB
JiaoYiLeiXingFrame.java 13KB
ZhuCeFrame.java 11KB
YingZhengFrame.java 10KB
ZhuanZhanFrame.java 8KB
QuKuanFrame.java 7KB
共 301 条
- 1
- 2
- 3
- 4
资源评论
- sslshu2011-11-01资源很全面,但有部分模块需要密码进入,希望楼主把密码告知一下!
jhlovett
- 粉丝: 11
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功