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转载请标明出处.