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
没有合适的资源?快使用搜索试试~ 我知道了~
ATM 取款模拟系统java版
共300个文件
class:63个
java:25个
ini:22个
4星 · 超过85%的资源 需积分: 10 282 下载量 183 浏览量
2007-08-09
18:34:10
上传
评论 3
收藏 2.61MB RAR 举报
温馨提示
ATM 取款模拟系统java版
资源详情
资源评论
资源推荐
收起资源包目录
ATM 取款模拟系统java版 (300个子文件)
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_jButton6_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton1_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton8_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton2_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton4_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton3_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton5_actionAdapter.class 759B
JiaoYiLeiXingFrame_jButton7_actionAdapter.class 759B
CunKuanTiShiFrame_jButton1_actionAdapter.class 753B
XiuGaiMiMaFrame_jButton3_actionAdapter.class 741B
XiuGaiMiMaFrame_jButton1_actionAdapter.class 741B
XiuGaiMiMaFrame_jButton2_actionAdapter.class 741B
YingZhengFrame_jButton2_actionAdapter.class 735B
YingZhengFrame_jButton1_actionAdapter.class 735B
ZhuanZhanFrame_jButton1_actionAdapter.class 735B
ZhuanZhanFrame_jButton3_actionAdapter.class 735B
ZhuanZhanFrame_jButton2_actionAdapter.class 735B
XiangDangFrame_jButton1_actionAdapter.class 735B
CunKuanFrame_jButton2_actionAdapter.class 723B
CunKuanFrame_jButton1_actionAdapter.class 723B
QuKuanFrame_jButton2_actionAdapter.class 717B
SelectFrame_jButton1_actionAdapter.class 717B
DengLuFrame_jButton1_actionAdapter.class 717B
XiaoHuFrame_jButton2_actionAdapter.class 717B
XiaoHuFrame_jButton1_actionAdapter.class 717B
DengLuFrame_jButton2_actionAdapter.class 717B
QuKuanFrame_jButton1_actionAdapter.class 717B
DengLuFrame_jButton3_actionAdapter.class 717B
TiShiFrame_jButton1_actionAdapter.class 711B
ZhuCeFrame_jButton2_actionAdapter.class 711B
ZhuCeFrame_jButton1_actionAdapter.class 711B
ZhuCeFrame_jButton3_actionAdapter.class 711B
CardFrame_jButton1_actionAdapter.class 705B
MainFrame_jButton2_actionAdapter.class 705B
MainFrame_jButton1_actionAdapter.class 705B
MainFrame_jButton3_actionAdapter.class 705B
Thumbs.db 125KB
com.zhou.view.dep2 88KB
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
共 300 条
- 1
- 2
- 3
lxyfly
- 粉丝: 6
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论10