-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.java
More file actions
163 lines (147 loc) · 7.53 KB
/
Copy pathwelcome.java
File metadata and controls
163 lines (147 loc) · 7.53 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
*/
/**
*
* @author drago
*/
public class welcome extends javax.swing.JFrame {
/**
* Creates new form welcome
*/
public welcome() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
admin_data = new javax.swing.JButton();
teacher_data = new javax.swing.JButton();
student_data = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
admin_data.setBackground(new java.awt.Color(102, 153, 255));
admin_data.setFont(new java.awt.Font("Segoe UI", 3, 12)); // NOI18N
admin_data.setForeground(new java.awt.Color(255, 255, 255));
admin_data.setText("Admin");
admin_data.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
admin_dataActionPerformed(evt);
}
});
teacher_data.setBackground(new java.awt.Color(204, 153, 255));
teacher_data.setFont(new java.awt.Font("Segoe UI", 3, 12)); // NOI18N
teacher_data.setForeground(new java.awt.Color(255, 255, 255));
teacher_data.setText("Teacher ");
teacher_data.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
teacher_dataActionPerformed(evt);
}
});
student_data.setBackground(new java.awt.Color(255, 153, 153));
student_data.setFont(new java.awt.Font("Segoe UI", 3, 12)); // NOI18N
student_data.setForeground(new java.awt.Color(255, 255, 255));
student_data.setText("Student ");
student_data.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
student_dataActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(144, 144, 144)
.addComponent(jLabel1))
.addGroup(layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(student_data, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(layout.createSequentialGroup()
.addComponent(admin_data, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(teacher_data)))))
.addContainerGap(36, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(105, 105, 105)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(admin_data)
.addComponent(teacher_data))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(student_data)
.addContainerGap(86, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void admin_dataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_admin_dataActionPerformed
// TODO add your handling code here:
Admin_data ad = new Admin_data();
ad.setVisible(true);
this.dispose();
}//GEN-LAST:event_admin_dataActionPerformed
private void teacher_dataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_teacher_dataActionPerformed
// TODO add your handling code here:
Teacher_Data td = new Teacher_Data();
td.setVisible(true);
this.dispose();
}//GEN-LAST:event_teacher_dataActionPerformed
private void student_dataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_student_dataActionPerformed
// TODO add your handling code here:
Student_data sd = new Student_data();
sd.setVisible(true);
this.dispose();
}//GEN-LAST:event_student_dataActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(welcome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new welcome().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton admin_data;
private javax.swing.JLabel jLabel1;
private javax.swing.JButton student_data;
private javax.swing.JButton teacher_data;
// End of variables declaration//GEN-END:variables
}