下载此文档

ATM自动取款机 JAVA代码实现.doc


文档分类:IT计算机 | 页数:约15页 举报非法文档有奖
1/15
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/15 下载此文档
文档列表 文档介绍
import .*;
import ;
import ;
import .*;
/**************************Account类************************************/
class Account
{
private String code =null; //信用卡号
private String uname =null; //客户姓名
private String pword =null; //客户密码
private double money =; //卡里金额

/******************set,get方法*******************/
public Account(String code,String name,String i,double money)
{
=code;
=name;
=i;
=money;
}

protected String get_Code() {

return code;
}

protected String get_Name() {

return uname;
}

protected void set_Password(String str) {

pword=str;
}
protected String get_Password() {

return pword;
}

public double get_Money() {

return money;
}
/*得到剩余的钱的数目*/
public void get_Balance(double mon) {

money =money- mon;
}
public void give_Balance(double mon) {

money =money+ mon;
}
}
public class logintest1{
public static Account user;
/********************************查询类**********************************/
static class re_info implements ActionListener{

private static final long serialVersionUID = 1L;
JLabel show=new JLabel("");
JLabel info=new JLabel("您当前的可用余额为:");
JFrame jf=new JFrame(""+()+" 您好,欢迎来到查询界面");
private JButton back=new JButton("返回");
public re_info()
{
(null);
(back);
(info);
(this);
(200,300,100,20);
(100,200,100,20);
(50,50,200,20);
(()+"");
(true);
(show);
(200,200,300,400);
();
}
public void actionPerformed(ActionEvent e)
{

if(()==back)
{
("退出");
();
}
}
}
/*****************************修改密码类*********************************/
static clas

ATM自动取款机 JAVA代码实现 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数15
  • 收藏数0 收藏
  • 顶次数0
  • 上传人mh900965
  • 文件大小71 KB
  • 时间2018-01-07