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

📄 xgmima_m300.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 XGmima_M300 implements ActionListener{
		ATM_window awindow;
		private JLabel newmima;
		public XGmima_M300(ATM_window aw){
			awindow=aw;
			newmima=new JLabel("请输入新的密码: ");
			newmima.setBounds(20, 85, 100, 25);
		}

		public void actionPerformed(ActionEvent e) {
			switch(awindow.getTr3()){
			case 0:              //无行为
				break;
			case 1:              //显示修改密码
			ATM_window.setRestTime(30);
			awindow.getPasswordtf().setText("");
			awindow.getDisplayPane().removeAll();
			awindow.getDisplayPane().add(newmima);
			awindow.getDisplayPane().add(awindow.getPasswordtf());
			awindow.getDisplayPane().add(awindow.getEnsure());
			
			awindow.getDisplayPane().repaint();
			NumberEvent numevent=new NumberEvent();
			numevent.setPassstr("");
			awindow.setTl1(0);
	        awindow.setTl2(0);
	        awindow.setTl3(0);
	        awindow.setTl4(0);
	        awindow.setTr1(0);
	        awindow.setTr2(0);
	        awindow.setTr3(0);
	        awindow.setTr4(3);
			break;
			case 2:                //300
				new CompMoney(awindow).commoney(300);
				break;
			}
		}

	}


⌨️ 快捷键说明

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