Repository navigation
Expand file tree
/
Copy pathDisplayEmployeeFrame.java
More file actions
97 lines (75 loc) · 2.3 KB
/
Copy pathDisplayEmployeeFrame.java
File metadata and controls
97 lines (75 loc) · 2.3 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
package com.ems.gui.analytics;
import com.ems.gui.analytics.TopAttendanceFrame;
import com.ems.gui.analytics.LowestAttendanceFrame;
import com.ems.gui.analytics.AttendancePercentageFrame;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Font;
public class AnalyticsFrame extends JFrame {
public AnalyticsFrame() {
setTitle("Analytics");
setSize(700, 500);
setLocationRelativeTo(null);
setLayout(null);
setDefaultCloseOperation(
JFrame.DISPOSE_ON_CLOSE
);
JLabel titleLabel =
new JLabel("ANALYTICS DASHBOARD");
titleLabel.setBounds(
160,
40,
400,
40
);
titleLabel.setFont(
new Font(
"Arial",
Font.BOLD,
26
)
);
add(titleLabel);
JButton topAttendanceButton =
new JButton(
"Top Attendance Employee"
);
topAttendanceButton.setBounds(
200,
130,
250,
40
);
add(topAttendanceButton);
topAttendanceButton.addActionListener(
e -> new TopAttendanceFrame());
JButton lowAttendanceButton =
new JButton(
"Lowest Attendance Employee"
);
lowAttendanceButton.setBounds(
200,
200,
250,
40
);
add(lowAttendanceButton);
lowAttendanceButton.addActionListener(
e -> new LowestAttendanceFrame());
JButton attendancePercentageButton =
new JButton(
"Attendance Percentage"
);
attendancePercentageButton.setBounds(
200,
270,
250,
40
);
add(attendancePercentageButton);
attendancePercentageButton.addActionListener(
e -> new AttendancePercentageFrame());
setVisible(true);
}
}