1 | import javax.swing.JFrame; |
2 | |
3 | /** |
4 | A simulation of an automatic teller machine |
5 | */ |
6 | public class ATMSimulation |
7 | { |
8 | public static void main(String[] args) |
9 | { |
10 | JFrame frame = new ATM(); |
11 | frame.setTitle("First National Bank of Java"); |
12 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
13 | frame.pack(); |
14 | frame.show(); |
15 | } |
16 | } |
17 |