-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocStart.java
116 lines (95 loc) · 2.43 KB
/
docStart.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
114
115
116
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class docStart extends JFrame implements ActionListener
{
JButton badd,bmod,bview,bback,bexit;
JLabel linfo,linfo1,linfo2,linfo3,linfo4;
docStart()
{
super("Doctor's Information");
setSize(1024,768);
setVisible(true);
setResizable(false);
setLayout(null);
linfo=new JLabel("Doctor's Information");
linfo.setBounds(445,30,210,20);
add(linfo);
linfo1=new JLabel("1. Add Doctors Information");
linfo1.setBounds(200,150,210,20);
add(linfo1);
badd=new JButton("Add Data",new ImageIcon("images/add.gif"));
badd.setBounds(350,180,180,30);
add(badd);
linfo2=new JLabel("2. Modify Doctors Information");
linfo2.setBounds(200,250,210,20);
add(linfo2);
bmod=new JButton("Modify Data",new ImageIcon("images/bModify.png"));
bmod.setBounds(350,280,180,30);
add(bmod);
linfo3=new JLabel("3. View Doctors Information");
linfo3.setBounds(200,350,210,20);
add(linfo3);
bview=new JButton("View Data",new ImageIcon("images/search.png"));
bview.setBounds(350,380,180,30);
add(bview);
bback=new JButton("BACK",new ImageIcon("images/restore.png"));
bback.setBounds(503,545,100,30);
add(bback);
//bexit=new JButton("EXIT");
//bexit.setBounds(730,515,100,30);
//add(bexit);
badd.addActionListener(new add());
bmod.addActionListener(new mod());
bview.addActionListener(new view());
//bexit.addActionListener(new exit());
bback.addActionListener(new back());
}
public void actionPerformed(ActionEvent ae)
{}
class back implements ActionListener
{
public void actionPerformed(ActionEvent ae)
{
new start();
setVisible(false);
}
}
class add implements ActionListener
{
public void actionPerformed(ActionEvent ae)
{
new DoctorInfoAdd();
setVisible(false);
}
}
class mod implements ActionListener
{
public void actionPerformed(ActionEvent ae)
{
new DoctorInfomodify();
setVisible(false);
}
}
class view implements ActionListener
{
public void actionPerformed(ActionEvent ae)
{
new DoctorInfoView();
setVisible(false);
}
}
/*
class exit implements ActionListener
{
public void actionPerformed(ActionEvent ae)
{
System.exit(0);
}
}
*/
public static void main(String[] args)
{
new docStart();
}
}