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

📄 makesure_return.java

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

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

import javax.swing.JLabel;
import javax.swing.JOptionPane;

import ATM_Frame.ATM_window;
import ATM_ToolClass.CompMoney;
import ATM_ToolClass.ComPassword;
import ATM_ToolClass.Return;
import ATM_ToolClass.MakesurePassword;

public class MakeSure_Return implements ActionListener{
		ATM_window awindow;
		static int i=3;
		public MakeSure_Return(ATM_window aw){
			awindow=aw;
		}
		public void actionPerformed(ActionEvent e) {
			switch(awindow.getTr4()){
			case 0:                              //无行为
				break;
			case 1:                               //检查密码
			    new ComPassword(awindow).compassword();
			    break;  
			case 2:      //返回
				new Return(awindow).return_to();
	            break;
			case 3:                   //修改密码
				new MakesurePassword(awindow).makesurepassword();
	            break;
			case 4: 
				int tempmoney;
				try {
					tempmoney = Integer.parseInt(awindow.getMoneytf().getText());
				} catch (NumberFormatException e1) {
					JOptionPane.showMessageDialog(awindow, "输入不能为空","操作失败",JOptionPane.ERROR_MESSAGE);
					break;
				}
				if(awindow.getMoneytf().getText().charAt(0)!='0'
					&&Integer.parseInt(awindow.getMoneytf().getText())%50==0){
				new CompMoney(awindow).commoney(tempmoney);
				}else{
					JOptionPane.showMessageDialog(awindow, "钱数输入有误","操作失败",JOptionPane.ERROR_MESSAGE);
					awindow.getMoneytf().setText("");
					NumberEvent.setPassstr("");
				}
				break;
		}
		}
	}


⌨️ 快捷键说明

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