-
Notifications
You must be signed in to change notification settings - Fork 0
/
Exit.java
109 lines (90 loc) · 3.21 KB
/
Exit.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package ATM;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Font;
import java.awt.Color;
import javax.swing.border.LineBorder;
public class Exit extends JFrame {
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Exit frame = new Exit();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public Exit() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 603, 615);
contentPane = new JPanel();
contentPane.setBackground(Color.WHITE);
contentPane.setBorder(new LineBorder(new Color(255, 0, 0)));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel lblNewLabel = new JLabel("Thank You For Using CouagrATM");
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 21));
lblNewLabel.setBounds(104, 214, 358, 54);
contentPane.add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel(" Would You Like To Exit Now");
lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 20));
lblNewLabel_1.setBounds(124, 273, 414, 34);
contentPane.add(lblNewLabel_1);
JLabel lblNewLabel_2 = new JLabel(" Would You Like To Go Back To Main Menu");
lblNewLabel_2.setFont(new Font("Tahoma", Font.BOLD, 20));
lblNewLabel_2.setBounds(53, 368, 456, 69);
contentPane.add(lblNewLabel_2);
JButton btnNewButton = new JButton("EXIT");
btnNewButton.setBorder(new LineBorder(Color.RED));
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
setVisible(false);
}
});
btnNewButton.setBounds(220, 323, 115, 29);
contentPane.add(btnNewButton);
JButton btnNewButton_1 = new JButton("Main Menu");
btnNewButton_1.setBorder(new LineBorder(Color.RED));
btnNewButton_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
firstLayer newlayer6 = new firstLayer();
newlayer6.setVisible(true);
setVisible(false);
}
});
btnNewButton_1.setBounds(220, 437, 115, 29);
contentPane.add(btnNewButton_1);
JLabel lblNewLabel_3 = new JLabel("");
lblNewLabel_3.setIcon(new ImageIcon("C:\\Users\\kings\\Downloads\\uh.jpg"));
lblNewLabel_3.setBounds(100, 16, 385, 81);
contentPane.add(lblNewLabel_3);
JButton btnNewButton_2 = new JButton("");
btnNewButton_2.setBackground(new Color(0, 0, 0));
btnNewButton_2.setBounds(0, 497, 581, 62);
contentPane.add(btnNewButton_2);
JButton btnNewButton_3 = new JButton("COUGAR ATM");
btnNewButton_3.setForeground(new Color(255, 0, 0));
btnNewButton_3.setBackground(new Color(255, 255, 255));
btnNewButton_3.setFont(new Font("Tahoma", Font.BOLD, 20));
btnNewButton_3.setBounds(197, 89, 197, 54);
contentPane.add(btnNewButton_3);
}
}