📄 exit_takeoutother.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;
public class Exit_TakeOutOther implements ActionListener{
ATM_window awindow;
private JLabel money;
public Exit_TakeOutOther(ATM_window aw){
awindow=aw;
money=new JLabel("请输入要取的金额: ");
money.setBounds(20, 85, 100, 25);
}
public void actionPerformed(ActionEvent e) {
switch(awindow.getTl4()){
case 0:
break;
case 1:
ATM_window.setRestTime(30);
awindow.setTn(true);
NumberEvent numevent=new NumberEvent();
numevent.setPassstr("");
awindow.getMoneytf().setText("");
awindow.getDisplayPane().removeAll();
awindow.getDisplayPane().add(money);
awindow.getDisplayPane().add(awindow.getMoneytf());
awindow.getDisplayPane().add(awindow.getEnsure());
awindow.getDisplayPane().repaint();
awindow.setTl1(0);
awindow.setTl2(0);
awindow.setTl3(0);
awindow.setTl4(0);
awindow.setTr1(0);
awindow.setTr2(0);
awindow.setTr3(0);
awindow.setTr4(4);
break;
case 2:
JOptionPane.showMessageDialog(awindow, "请取卡","操作完成",JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -