-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReception.java
More file actions
171 lines (140 loc) · 5.29 KB
/
Reception.java
File metadata and controls
171 lines (140 loc) · 5.29 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
package Hospital.Management.System;
import javax.security.auth.login.LoginContext;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Reception extends JFrame {
public Reception(){
JPanel panel = new JPanel();
panel.setLayout(null);
panel.setBounds(5,160,1525,670);
panel.setBackground(new Color(109,164,170));
add(panel);
JPanel panel1 = new JPanel();
panel1.setLayout(null);
panel1.setBounds(5,5,1525,150);
panel1.setBackground(new Color(109,164,170));
add(panel1);
ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("icon/dr.png"));
Image image = i1.getImage().getScaledInstance(250,250,Image.SCALE_DEFAULT);
ImageIcon i2 = new ImageIcon(image);
JLabel label = new JLabel(i2);
label.setBounds(1300,0,250,250);
panel1.add(label);
ImageIcon i11 = new ImageIcon(ClassLoader.getSystemResource("icon/amb.png"));
Image image1 = i11.getImage().getScaledInstance(300,100,Image.SCALE_DEFAULT);
ImageIcon i22 = new ImageIcon(image1);
JLabel label1 = new JLabel(i22);
label1.setBounds(1000,50,300,100);
panel1.add(label1);
JButton btn1 = new JButton("Add new Patient");
btn1.setBounds(30,15,200,30);
btn1.setBackground(new Color(246,215,118));
panel1.add(btn1);
btn1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new New_Patient();
}
});
JButton btn2 = new JButton("Room");
btn2.setBounds(30,58,200,30);
btn2.setBackground(new Color(246,215,118));
panel1.add(btn2);
btn2.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Room();
}
});
JButton btn3 = new JButton("Department");
btn3.setBounds(30,100,200,30);
btn3.setBackground(new Color(246,215,118));
panel1.add(btn3);
btn3.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Department();
}
});
JButton btn4 = new JButton("All Employee Info");
btn4.setBounds(270,15,200,30);
btn4.setBackground(new Color(246,215,118));
panel1.add(btn4);
btn4.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Employee_Info();
}
});
JButton btn5 = new JButton("Patient Info");
btn5.setBounds(270,58,200,30);
btn5.setBackground(new Color(246,215,118));
panel1.add(btn5);
btn5.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Alll_Patient_Info();
}
});
JButton btn6 = new JButton("Patient Discharge");
btn6.setBounds(270,100,200,30);
btn6.setBackground(new Color(246,215,118));
panel1.add(btn6);
btn6.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Patient_Discharge();
}
});
JButton btn7 = new JButton("Update Patient Details");
btn7.setBounds(510,15,200,30);
btn7.setBackground(new Color(246,215,118));
panel1.add(btn7);
btn7.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Update_Patient_Details();
}
});
JButton btn8 = new JButton("Hospital Ambulance");
btn8.setBounds(510,58,200,30);
btn8.setBackground(new Color(246,215,118));
panel1.add(btn8);
btn8.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Ambulance();
}
});
JButton btn9 = new JButton("Search Room");
btn9.setBounds(510,100,200,30);
btn9.setBackground(new Color(246,215,118));
panel1.add(btn9);
btn9.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new SearchRoom();
}
});
JButton btn10 = new JButton("Logout");
btn10.setBounds(750,15,200,30);
btn10.setBackground(new Color(246,215,118));
panel1.add(btn10);
btn10.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
setVisible(false);
new hospital.management.system.Login();
}
});
setSize(1950,1090);
getContentPane().setBackground(Color.WHITE);
setLayout(null);
setVisible(true);
}
public static void main(String[]args){
new Reception();
}
}