下载此文档

(参考)基于JAVA的ATM模拟系统代码.doc


文档分类:IT计算机 | 页数:约24页 举报非法文档有奖
1/24
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/24 下载此文档
文档列表 文档介绍
ATM 模块主要代码 import .*; import .*; import .*; import ; import ; import ; import ; import ; import ; import ; import ; import ; class Panel1 extends JPanel{ JLabel label1,label2; Panel1(){ setLayout( new GridLayout(4,1)); label1= new JLabel( "" +" 银行存取款系统" ); label2= new JLabel( "" +" 欢迎你成为本行用户,你可以选择中文或英文方式" ); add( new JLabel()); add(label1); add(label2); add( new JLabel()); }} class Panel2 extends JPanel{ JButton button1,button2; Panel2(){ setLayout( new GridLayout(3,6)); button1= new JButton( " 中文" ); button2= new JButton( " 英文" ); add( new JLabel());add( new JLabel());add( new JLabel());add( new JLabel());add( new JLabel()); add( new JLabel());add( new JLabel());add(button1);add( new JLabel());add( new JLabel()); add(button2);add( new JLabel());add( new JLabel());add( new JLabel());add( new JLabel()); add( new JLabel());add( new JLabel());add( new JLabel()); }} class Client extends JFrame implements ActionListener{ Panel1 panel1; Panel2 panel2; JFrame frame; Client(String s){ super (s); Container con= this .getContentPane(); ( new GridLayout(2,1)); panel1= new Panel1(); panel2= new Panel2(); (panel1); (panel2); ( this ); ( this ); this .setVisible( true ); this .pack(); } public void actionPerformed(ActionEvent e){ if (()== " 中文" ){ this .setVisible( false ); new Client00( " 输入密码" ); } else if (()== " 英文" ){ String inputValue =( "Please input a value" ); }}} public class bankSystem { public static void main(String []args){ new Client( " 用户取款系统" ); }} class Panel01 extends JPanel{ JLabel label1,label2,label3,label4; JPasswordField textA; JTextField textC; static JTextField textB; char t[]= new char [4]; Panel01(){

(参考)基于JAVA的ATM模拟系统代码 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数24
  • 收藏数0 收藏
  • 顶次数0
  • 上传人1017848967
  • 文件大小0 KB
  • 时间2016-05-17