Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAnalytics.java
More file actions
Latest commit
113 lines (89 loc) · 3.09 KB
/
Copy pathAnalytics.java
File metadata and controls
113 lines (89 loc) · 3.09 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
importjava.awt.Color;
importjava.awt.EventQueue;
importjavax.swing.JFrame;
importjavax.swing.JLabel;
importjava.awt.Font;
importjava.awt.Window;
importjavax.swing.JButton;
importjava.awt.event.ActionListener;
importjava.awt.event.ActionEvent;
publicclassAnalytics {
privateJFramefraAnalytics;
privateJFramefraUsers;
/**
* Launch the application.
*/
publicstaticvoidmain(String[] args) {
EventQueue.invokeLater(newRunnable() {
publicvoidrun() {
try {
Analyticswindow = newAnalytics();
window.fraAnalytics.setVisible(true);
} catch (Exceptione) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
publicAnalytics() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
privatevoidinitialize() {
fraAnalytics = newJFrame();
fraAnalytics.setBounds(100, 100, 450, 300);
fraAnalytics.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
fraAnalytics.getContentPane().setLayout(null);
JLabellblTitle = newJLabel("You can track our data at here");
lblTitle.setFont(newFont("Times New Roman", Font.PLAIN, 26));
lblTitle.setBounds(49, 11, 344, 47);
fraAnalytics.getContentPane().add(lblTitle);
JButtonbtnusers = newJButton("Track Users");
btnusers.addActionListener(newActionListener() {
publicvoidactionPerformed(ActionEventarg0) {
Trackuserstrackusers = newTrackusers();
trackusers.getJFrame().setVisible(true);
}
});
btnusers.setFont(newFont("Tempus Sans ITC", Font.PLAIN, 25));
btnusers.setBounds(20, 90, 175, 56);
btnusers.setForeground(hex2Rgb("#011A27"));
btnusers.setBackground(hex2Rgb("#F0810F"));
fraAnalytics.getContentPane().add(btnusers);
JButtonbtnjobs = newJButton("Track Jobs");
btnjobs.setForeground(hex2Rgb("#011A27"));
btnjobs.setBackground(hex2Rgb("#F0810F"));
btnjobs.addActionListener(newActionListener() {
publicvoidactionPerformed(ActionEventarg0) {
Trackjobstrackjobs = newTrackjobs();
trackjobs.getJFrame().setVisible(true);
}
});
btnjobs.setFont(newFont("Tempus Sans ITC", Font.PLAIN, 25));
btnjobs.setBounds(218, 90, 175, 56);
fraAnalytics.getContentPane().add(btnjobs);
JButtonbtnReviews = newJButton("Track Reviews");
btnReviews.setForeground(hex2Rgb("#011A27"));
btnReviews.setBackground(hex2Rgb("#F0810F"));
btnReviews.addActionListener(newActionListener() {
publicvoidactionPerformed(ActionEvente) {
Trackreviewstrackreviews = newTrackreviews();
trackreviews.getJFrame().setVisible(true);
}
});
btnReviews.setFont(newFont("Tempus Sans ITC", Font.PLAIN, 25));
btnReviews.setBounds(122, 176, 175, 56);
fraAnalytics.getContentPane().add(btnReviews);
}
publicstaticColorhex2Rgb(StringcolorStr) {
returnnewColor(
Integer.valueOf( colorStr.substring( 1, 3 ), 16 ),
Integer.valueOf( colorStr.substring( 3, 5 ), 16 ),
Integer.valueOf( colorStr.substring( 5, 7 ), 16 ) );
}
}