freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

atm機(jī)java語言程序設(shè)計(jì)課程設(shè)計(jì)報(bào)告-文庫吧

2025-05-08 18:03 本頁面


【正文】 w JTextField(8)。 (new myKeyListener(jtf))。 jpf=new JPasswordField()。 jb1=new JButton(登陸賬號(hào))。 (this)。 jb2=new JButton(銀行開戶)。 (this)。 jb3=new JButton(重新登錄)。 (this)。 jb4=new JButton(退出系統(tǒng))。 (this)。 //添加圖片 jl= new JLabel()。 URL resource = ().getResource(/images/)。 ImageIcon bgImage=new ImageIcon(resource)。 //創(chuàng)建圖標(biāo) (bgImage)。 (0,0,400,400)。 (25, 40, 400, 40)。 (50, 85, 60, 40)。 (50, 150, 60, 40)。 (120, 90,150, 30)。 (120, 155,150,30)。 (0, 250, 90, 30)。 (100, 250, 90,30 )。 (200, 250, 90,30 )。 (300, 250, 90, 30)。 (jl1)。 (jl2)。 (jtf)。 (jl3)。 (jpf)。 (jb1)。 (jb2)。 (jb3)。 (jb4)。 (jl)。 (400,400)。 ()。 (true)。 } public static void main(String[] args) { new Client(account)。 } public void actionPerformed(ActionEvent e) { if(()==jb1){ String s1=()。 String s2=new String(())。 if(account!=null){ if(()amp。amp。()){ new Main(account)。 (false)。 }else{ (this,請(qǐng)核對(duì)您的卡號(hào)和密碼,重新登錄)。 } }else if(account==null){ (this, 請(qǐng)進(jìn)行銀行開戶)。 } }else if(()==jb2){ // new AtmDemo()。 (false)。 }else if(()==jb3){ ()。 ()。 }else if(()==jb4){ //設(shè)置jb4——退出系統(tǒng) int i=(this,您確定要退出ATM機(jī)系統(tǒng)?,提示,)。 if(i==1){ return。 } (0)。 } } //創(chuàng)建jtf的監(jiān)聽,使jtf只能輸入8個(gè)數(shù)字,且只能輸入數(shù)字 class myKeyListener extends KeyAdapter{ private JTextField jtf。 private int length。 public myKeyListener(JTextField jtf){ = jtf。 = 8。 } public myKeyListener(JTextField jtf,int length){ = jtf。 = length。 } public void keyTyped(KeyEvent e) { boolean b = (()).matches(\\d)。 if(!b || ().length() == length){ ()。 } } }} package client。import .*。import .*。import .*。import 。import 。import 。import .*。public class AtmDemo extends JFrame implements ActionListener { JLabel jl1,jl2,jl3,jl4,jl5,jl6,jl7,jl8。 JTextField jtf1,jtf2,jtf3。 JPasswordField jpf1,jpf2。 JButton jb1,jb2,jb3。 JComboBox jcb。 BufferedReader br。 JLabel msg。 Account account。 int totalmoney=10000。 int money。 public AtmDemo(){ super(銀行卡號(hào)開戶)。 (null)。 jl1=new JLabel(卡號(hào)開戶)。 jl2=new JLabel(卡號(hào):)。 jl3=new JLabel(密碼 :)。 jl4=new JLabel(確認(rèn)密碼 :)。 jl5=new JLabel(用戶名:)。 jl6=new JLabel(性別:)。 jcb = new JComboBox()。 (男)。 (女)。 jl7=new JLabel(存款金額:)。 jb1=new JButton(生成卡號(hào))。 jb2=new JButton(確認(rèn)開戶)。 jb3=new JButton(取消開戶)。 jtf1=new JTextField(16)。 (false)。//設(shè)置文本框不可見 jtf2=new JTextField(4)。 jtf3=new JTextField()。 jpf1=new JPasswordField(6)。 jpf2=new JPasswordField(6)。 msg=new JLabel()。 ()。 //監(jiān)聽 (this)。 (this)。 (this)。 (new myKeyListener(jtf3))。 ()。 (new Font(宋體, , 40))。 //添加圖片 jl8= new JLabel()。 URL resource = ().getResource(/images/)。 ImageIcon bgImage=new ImageIcon(resource)。 //創(chuàng)建圖標(biāo) (bgImage)。 (0,0,400,400)。 (105, 10, 225, 41)。//卡號(hào)開戶 (40, 60, 81, 18)。//卡號(hào) (297, 60, 91, 18)。//生成卡號(hào) (40, 90, 81, 18)。//密碼 (40, 120, 81, 18)。//確認(rèn)密碼 (40, 150, 81, 18)。//用戶名 (40, 180, 81, 15)。//性別 (100, 180, 110, 18)。//復(fù)選按鈕 (40, 210, 81, 15)。//存款金額 (100, 60, 190, 18)。//卡號(hào)框 (100, 90, 170, 18)。//密碼框 (100, 120, 150, 18)。//確認(rèn)密碼框 (100, 150, 130, 18)。//用戶名框 (100, 210, 90, 18)。//存款金額框 (80, 300,100, 25)。//確認(rèn)開戶 (230, 300, 100, 25)。//取消開戶 (150,260,270,60)。 add(jb1)。 add(jb2)。 add(jb3)。 add(jcb)。 add(jl1)。 add(jl2)。 add(jl3)。 add(jl4)。 add(jl5)。 add(jl6)。 add(jl7)。 add(jpf1)。 add(jpf2)。 add(jtf1)。 add(jtf2)。 add(jtf3)。 add(msg)。 add(jl8)。 (400,400)。 ()。 (true)。 } public static void main(String args[]){ new AtmDemo()。 } public void actionPerformed(ActionEvent e) { String id1=()。//卡號(hào) String s1=new String(())。//確認(rèn)密碼 int mone=money。//生成的金額數(shù) account=new Account(id1,s1,mone)。//把生成的卡號(hào)、確認(rèn)密碼、生成金額數(shù)保存在account類內(nèi) try{ //創(chuàng)建文件 File f=new File()。 if(()==jb1){ //生成卡號(hào) (true)。
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1