-
Notifications
You must be signed in to change notification settings - Fork 1
/
Admin.java
113 lines (80 loc) · 2.99 KB
/
Admin.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
110
111
112
113
import javax.swing.*;
import java.awt.*;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Admin extends JFrame implements ActionListener{
JLabel framepic;
JButton jButton1,jButton2,jButton3,jButton4,jButton5,jButton6;
public Admin() {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(1260, 840);
this.setLocationRelativeTo(null);
this.setResizable(false);
this.setLayout(null);
jButton1 = new JButton("Manage Room");
jButton1.setBounds(30, 40, 250, 40);
jButton1.setFocusable(false);
jButton1.setFont(new Font("Segoe UI SemiBold",Font.PLAIN,25));
jButton1.setForeground(Color.white);
jButton1.setBackground(Color.decode("#b8860b"));
this.add(jButton1);
jButton2 = new JButton("Manage Customer");
jButton2.setBounds(310, 40, 250, 40);
jButton2.setFocusable(false);
jButton2.setFont(new Font("Segoe UI SemiBold",Font.PLAIN,25));
jButton2.setForeground(Color.white);
jButton2.setBackground(Color.decode("#b8860b"));
this.add(jButton2);
jButton3 = new JButton("Manage Employee");
jButton3.setBounds(590, 40, 250, 40);
jButton3.setFocusable(false);
jButton3.setFont(new Font("Segoe UI SemiBold",Font.PLAIN,25));
jButton3.setForeground(Color.white);
jButton3.setBackground(Color.decode("#b8860b"));
this.add(jButton3);
jButton4 = new JButton("Customer Details");
jButton4.setBounds(870, 40, 250, 40);
jButton4.setFocusable(false);
jButton4.setFont(new Font("Segoe UI SemiBold",Font.PLAIN,25));
jButton4.setForeground(Color.white);
jButton4.setBackground(Color.decode("#b8860b"));
this.add(jButton4);
jButton5 = new JButton("Logout");
jButton5.setBounds(30, 100, 250, 40);
jButton5.setFocusable(false);
jButton5.setFont(new Font("Segoe UI SemiBold",Font.PLAIN,25));
jButton5.setForeground(Color.white);
jButton5.setBackground(Color.decode("#b8860b"));
this.add(jButton5);
jButton6 = new JButton("EXIT");
jButton6.setBounds(1150, 40, 90, 40);
jButton6.setFocusable(false);
jButton6.setFont(new Font("Segoe UI SemiBold",Font.PLAIN,25));
jButton6.setForeground(Color.white);
jButton6.setBackground(Color.decode("#C00000"));
this.add(jButton6);
framepic = new JLabel();
framepic.setIcon(new ImageIcon(getClass().getResource("Storage/hotel.jpg")));
framepic.setBounds(0, 0, 1254, 836);
this.add(framepic);
jButton1.addActionListener(this);
jButton2.addActionListener(this);
jButton3.addActionListener(this);
jButton4.addActionListener(this);
jButton5.addActionListener(this);
jButton6.addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
if (e.getSource() == jButton1) {
}
if(e.getSource()==jButton6) {
System.exit(0);
}
}
// public static void main (String [] args) {
// Admin a = new Admin();
// a.setVisible(true);
// }
}