forked from KavithaVarughese/DocMate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage2.java
88 lines (76 loc) · 2.43 KB
/
page2.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
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 java.awt.Font;
import javax.swing.SwingConstants;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class page2 extends JFrame {
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
page2 frame = new page2();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public page2() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 367);
contentPane = new JPanel();
contentPane.setBackground(new Color(224, 255, 255));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel lblWelcomeDoctor = new JLabel("WELCOME DOCTOR!");
lblWelcomeDoctor.setForeground(Color.BLACK);
lblWelcomeDoctor.setBackground(Color.BLUE);
lblWelcomeDoctor.setHorizontalAlignment(SwingConstants.CENTER);
lblWelcomeDoctor.setFont(new Font("Palatino Linotype", Font.BOLD, 14));
lblWelcomeDoctor.setBounds(10, 25, 389, 41);
contentPane.add(lblWelcomeDoctor);
JButton btnBack = new JButton("BACK");
btnBack.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
contentPane.setVisible(false);
dispose();
Login1.main(null);
}
});
btnBack.setBounds(22, 273, 89, 23);
contentPane.add(btnBack);
JButton btnNewButton = new JButton("Add Patient");
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
contentPane.setVisible(false);
dispose();
patientadd p1 = new patientadd();
p1.setVisible(true);
}
});
btnNewButton.setBounds(41, 181, 98, 23);
contentPane.add(btnNewButton);
JButton btnSearchPatient = new JButton("Search Patient ");
btnSearchPatient.setBounds(153, 181, 115, 23);
contentPane.add(btnSearchPatient);
JButton btnAddAppointment = new JButton("Add Appointment");
btnAddAppointment.setBounds(284, 181, 115, 23);
contentPane.add(btnAddAppointment);
}
}