资源简介
java银行ATM系统界面实现. 界面实现,java银行ATM系统界面实现。
代码片段和文件信息
package ATM;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.frame;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
class ATM_interface extends Jframe{
JPanel pan1pan2pan3pan4;
JButton[] bt_dtbt_text;
JButton bt1bt2bt3bt4bt5bt6bt7bt8bt9;
JTextArea txt;
JLabel lab1;
String[] str = {“1““2““3““4““5““6““7““8““9““.““0““00“};
String[] str1 = {“>>>>““>>>>““>>>>““查询““取款“};
GridLayout g1 = new GridLayout(4288);
GridLayout g2 = new GridLayout(52);
GridLayout g3 = new GridLayout(52);
ATM_interface(){
pan1 = new JPanel();
pan2 = new JPanel();
pan3 = new JPanel();
pan4 = new JPanel();
bt1 = new JButton(“存款“);
bt2 = new JButton(“取款“);
bt3 = new JButton(“查询“);
bt4 = new JButton(“转账“);
bt5 = new JButton(““);
bt6 = new JButton(“后退“);
bt7 = new JButton(““);
bt8 = new JButton(“确定“);
bt9 = new JButton(“清除“);
pan1.setLayout(g1);
pan3.setLayout(g3);
pan4.setLa
- 上一篇:java写的打字游戏源代码
- 下一篇:java jdk demo
评论
共有 条评论