?? 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);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -