-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDoctor.java
More file actions
82 lines (54 loc) · 1.54 KB
/
Doctor.java
File metadata and controls
82 lines (54 loc) · 1.54 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
package bootathonfinal;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Image;
import java.sql.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
class Doctor
{
public Doctor()
{
JFrame f=ObjectFile.getFrame("Doctors Page");
//JPanel jp=ObjectFile.getpanel();
//f.setLayout(new BorderLayout());
//f.add(jp,BorderLayout.WEST);
JButton ViewPatient=ObjectFile.getButton("View Patient");
JButton ViewallPatient=ObjectFile.getButton("View all Patient");
JButton chart1 = ObjectFile.getButton("Diseases Analysis");
//JButton chart1 = ObjectFile.getButton("Di Analysis");
ViewPatient.setBounds(60, 160, 270, 40);
chart1.setBounds(60, 280, 270, 40);
ViewallPatient.setBounds(60, 220, 270, 40);
ViewPatient.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
new ViewPatient();
}
});
ViewallPatient.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
new ViewallPatient();
}
});
chart1.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
new Chart();
}
});
f.add(chart1);
f.add(ViewPatient);
f.add(ViewallPatient);
JPanel panel = ObjectFile.getpanel();
f.add(panel);
}
public static void main (String []args)
{
new Doctor();
}
}