資源簡介
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
評論
共有 條評論