-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommon_Start_Screen.java
72 lines (59 loc) · 2.53 KB
/
Common_Start_Screen.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
public class Common_Start_Screen extends javax.swing.JFrame
{
public Common_Start_Screen()
{
initComponents();
setSize(600, 370);
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
bt_admin = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
bt_user = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
bt_admin.setText("ADMIN");
bt_admin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bt_adminActionPerformed(evt);
}
});
getContentPane().add(bt_admin);
bt_admin.setBounds(320, 100, 230, 210);
jLabel1.setFont(new java.awt.Font("Segoe UI Semibold", 0, 36)); // NOI18N
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("Welcome To My VOD Project");
getContentPane().add(jLabel1);
jLabel1.setBounds(0, 0, 600, 60);
bt_user.setText("USER");
bt_user.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bt_userActionPerformed(evt);
}
});
getContentPane().add(bt_user);
bt_user.setBounds(50, 100, 230, 210);
pack();
}// </editor-fold>//GEN-END:initComponents
private void bt_adminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_adminActionPerformed
Admin_Login obj = new Admin_Login();
obj.setVisible(true);
}//GEN-LAST:event_bt_adminActionPerformed
private void bt_userActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bt_userActionPerformed
start_screen obj = new start_screen();
obj.setVisible(true);
}//GEN-LAST:event_bt_userActionPerformed
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Common_Start_Screen().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton bt_admin;
private javax.swing.JButton bt_user;
private javax.swing.JLabel jLabel1;
// End of variables declaration//GEN-END:variables
}