⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 takeoutmoney_m100.java

📁 JAVA 方法写的 ATM自助银行系统 代码清晰明了
💻 JAVA
字号:
package ATM_Events;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JLabel;

import ATM_Frame.ATM_window;
import ATM_ToolClass.CompMoney;

public class TakeoutMoney_M100 implements ActionListener{
		ATM_window awindow;
		private JLabel M100,M200,M300,M500,M1000,M2000,Mother;
		public TakeoutMoney_M100(ATM_window aw){
			 awindow=aw;
			 M100=new JLabel("100");
			 M100.setBounds(220, 0, 50, 30);
			 M200=new JLabel("200");
			 M200.setBounds(220, 50, 50, 30);
			 M300=new JLabel("300");
			 M300.setBounds(220, 100, 50, 30);
			 M500=new JLabel("500");
			 M500.setBounds(10, 0, 50, 30);
			 M1000=new JLabel("1000");
			 M1000.setBounds(10, 50, 50, 30);
			 M2000=new JLabel("2000");
			 M2000.setBounds(10, 100, 50, 30);
			 Mother=new JLabel("其他");
			 Mother.setBounds(10, 150, 50, 30);
		}

		public void actionPerformed(ActionEvent e) {
			switch(awindow.getTr1()){
			case 0:     //无行为
				break;
			case 1:     //取款
				ATM_window.setRestTime(30);
				awindow.getDisplayPane().removeAll();
			    awindow.getDisplayPane().add(M100);
			    awindow.getDisplayPane().add(M200);
			    awindow.getDisplayPane().add(M300);
			    awindow.getDisplayPane().add(M500);
			    awindow.getDisplayPane().add(M1000);
			    awindow.getDisplayPane().add(M2000);
			    awindow.getDisplayPane().add(Mother);
			    awindow.getDisplayPane().add(awindow.getReture());
			    awindow.getDisplayPane().repaint();
			    awindow.setTl1(1);
	            awindow.setTl2(1);
	            awindow.setTl3(1);
	            awindow.setTl4(1);
	            awindow.setTr1(2);
	            awindow.setTr2(2);
	            awindow.setTr3(2);
	            awindow.setTr4(2);
			    break;
			case 2:                //100
				new CompMoney(awindow).commoney(100);
				break;
			}
		}

	}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -