package smartGUI.
createAccount;
import java.awt.Cursor;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
/**
*
* @author Ayush Bhardwaj
*/
public class CreateAccount extends javax.swing.JFrame {
/**
* Creates new form MainFrame
*/
public CreateAccount() {
initComponents();
// setExtendedState(JFrame.MAXIMIZED_BOTH);
}
/**
* 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() {
jPanel1 = new javax.swing.JPanel();
jLabel16 = new javax.swing.JLabel();
user_name1 = new app.bolivia.swing.JCTextField();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
password = new javax.swing.JPasswordField();
jLabel13 = new javax.swing.JLabel();
user_name = new app.bolivia.swing.JCTextField();
jLabel17 = new javax.swing.JLabel();
user_name2 = new app.bolivia.swing.JCTextField();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
user_name3 = new app.bolivia.swing.JCTextField();
user_name4 = new app.bolivia.swing.JCTextField();
jLabel20 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox<>();
jLabel21 = new javax.swing.JLabel();
jComboBox2 = new javax.swing.JComboBox<>();
rSMaterialButtonCircle1 = new rojerusan.RSMaterialButtonCircle();
jPanel2 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jPanel3 = new javax.swing.JPanel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jCTextField2 = new app.bolivia.swing.JCTextField();
wrong_input = new java.awt.Label();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setUndecorated(true);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jPanel1.setBackground(new java.awt.Color(102, 102, 255));
jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabel16.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel16.setForeground(new java.awt.Color(255, 255, 255));
jLabel16.setText("E-Mail :");
jPanel1.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
240, -1, -1));
user_name1.setBackground(new java.awt.Color(102, 102, 255));
user_name1.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1,
0, new java.awt.Color(255, 255, 255)));
jPanel1.add(user_name1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(40, 250, 360, 30));
jLabel7.setFont(new java.awt.Font("Microsoft JhengHei", 1, 18)); // NOI18N
jLabel7.setForeground(new java.awt.Color(255, 255, 255));
jLabel7.setText("Create Account");
jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(170,
30, -1, -1));
jLabel8.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("Create Your Account");
jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(180,
60, -1, -1));
jLabel14.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel14.setForeground(new java.awt.Color(255, 255, 255));
jLabel14.setText("Password :");
jPanel1.add(jLabel14, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
300, -1, -1));
password.setBackground(new java.awt.Color(102, 102, 255));
password.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0,
new java.awt.Color(255, 255, 255)));
jPanel1.add(password, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
310, 360, 30));
jLabel13.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel13.setForeground(new java.awt.Color(255, 255, 255));
jLabel13.setText("Token :");
jPanel1.add(jLabel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
360, -1, -1));
user_name.setBackground(new java.awt.Color(102, 102, 255));
user_name.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0,
new java.awt.Color(255, 255, 255)));
jPanel1.add(user_name, new
org.netbeans.lib.awtextra.AbsoluteConstraints(40, 370, 360, 30));
jLabel17.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel17.setForeground(new java.awt.Color(255, 255, 255));
jLabel17.setText("Last Name :");
jPanel1.add(jLabel17, new
org.netbeans.lib.awtextra.AbsoluteConstraints(260, 110, -1, -1));
user_name2.setBackground(new java.awt.Color(102, 102, 255));
user_name2.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1,
0, new java.awt.Color(255, 255, 255)));
jPanel1.add(user_name2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(260, 130, 140, 30));
jLabel18.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel18.setForeground(new java.awt.Color(255, 255, 255));
jLabel18.setText("Username or Emp. Id. :");
jPanel1.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
170, -1, -1));
jLabel19.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel19.setForeground(new java.awt.Color(255, 255, 255));
jLabel19.setText("Projects :");
jPanel1.add(jLabel19, new
org.netbeans.lib.awtextra.AbsoluteConstraints(210, 430, -1, -1));
user_name3.setBackground(new java.awt.Color(102, 102, 255));
user_name3.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1,
0, new java.awt.Color(255, 255, 255)));
jPanel1.add(user_name3, new
org.netbeans.lib.awtextra.AbsoluteConstraints(40, 190, 360, 30));
user_name4.setBackground(new java.awt.Color(102, 102, 255));
user_name4.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1,
0, new java.awt.Color(255, 255, 255)));
jPanel1.add(user_name4, new
org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, 140, 30));
jLabel20.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel20.setForeground(new java.awt.Color(255, 255, 255));
jLabel20.setText("First Name :");
jPanel1.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
110, -1, -1));
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[]
{ "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1ActionPerformed(evt);
}
});
jPanel1.add(jComboBox1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(280, 430, 120, -1));
jLabel21.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel21.setForeground(new java.awt.Color(255, 255, 255));
jLabel21.setText("Role :");
jPanel1.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(40,
430, -1, -1));
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel<>(new String[]
{ "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboBox2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox2ActionPerformed(evt);
}
});
jPanel1.add(jComboBox2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(80, 430, 100, -1));
rSMaterialButtonCircle1.setBackground(new java.awt.Color(153, 153, 255));
rSMaterialButtonCircle1.setText("signup");
rSMaterialButtonCircle1.setFont(new java.awt.Font("Roboto Medium", 0, 10));
// NOI18N
rSMaterialButtonCircle1.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
rSMaterialButtonCircle1ActionPerformed(evt);
}
});
jPanel1.add(rSMaterialButtonCircle1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(130, 490, 180, 40));
getContentPane().add(jPanel1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 470, 550));
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabel1.setFont(new java.awt.Font("Yu Gothic UI", 1, 26)); // NOI18N
jLabel1.setText("x");
jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel1MouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
jLabel1MouseEntered(evt);
}
});
jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(320,
0, -1, -1));
jPanel3.setBackground(new java.awt.Color(102, 102, 255));
jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabel9.setFont(new java.awt.Font("Yu Gothic UI", 1, 26)); // NOI18N
jLabel9.setText("x");
jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel9MouseClicked(evt);
}
});
jPanel3.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(320,
0, -1, -1));
jLabel10.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel10.setForeground(new java.awt.Color(255, 255, 255));
jLabel10.setText("Username :");
jPanel3.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(30,
210, -1, -1));
jLabel11.setFont(new java.awt.Font("Microsoft JhengHei", 1, 18)); // NOI18N
jLabel11.setForeground(new java.awt.Color(255, 255, 255));
jLabel11.setText("Welcome!");
jPanel3.add(jLabel11, new
org.netbeans.lib.awtextra.AbsoluteConstraints(130, 50, -1, -1));
jLabel12.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
jLabel12.setForeground(new java.awt.Color(255, 255, 255));
jLabel12.setText("Login To Your Account");
jPanel3.add(jLabel12, new
org.netbeans.lib.awtextra.AbsoluteConstraints(110, 100, -1, -1));
jCTextField2.setBackground(new java.awt.Color(102, 102, 255));
jCTextField2.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1,
0, new java.awt.Color(255, 255, 255)));
jCTextField2.setPlaceholder("Enter Username...");
jPanel3.add(jCTextField2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, 250, 30));
jPanel2.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(470,
0, 350, 550));
wrong_input.setFont(new java.awt.Font("Verdana", 0, 12)); // NOI18N
wrong_input.setForeground(new java.awt.Color(255, 255, 255));
wrong_input.setName(""); // NOI18N
jPanel2.add(wrong_input, new
org.netbeans.lib.awtextra.AbsoluteConstraints(80, 440, 210, -1));
jLabel2.setBackground(new java.awt.Color(255, 255, 255));
jLabel2.setFont(new java.awt.Font("Nirmala UI", 1, 16)); // NOI18N
jLabel2.setForeground(new java.awt.Color(102, 102, 255));
jLabel2.setText("Server Monitoring And Reporting Tool");
jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30,
120, -1, -1));
jLabel3.setBackground(new java.awt.Color(255, 255, 255));
jLabel3.setFont(new java.awt.Font("Nirmala UI", 1, 16)); // NOI18N
jLabel3.setForeground(new java.awt.Color(255, 0, 51));
jLabel3.setText("SMART");
jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(140,
90, -1, -1));
BufferedImage img=null;
try {
img = ImageIO.read(new File("C:\\Users\\Ayush Bhardwaj\\Desktop\\GUI\\
i-TASfilled.png"));
} catch (IOException e) {
e.printStackTrace();
}
Image image = img.getScaledInstance(240, 180, Image.SCALE_SMOOTH);
BufferedImage buffered = new BufferedImage(240, 180,
BufferedImage.TYPE_INT_RGB);
buffered.getGraphics().drawImage(image, 0, 0 , null);
ImageIcon imageIcon = new ImageIcon(buffered);
jLabel5.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/com/mycompany/smartGUI/icon/
giphy.gif"))); // NOI18N
jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60,
190, 240, 230));
getContentPane().add(jPanel2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(470, 0, 350, 550));
pack();
setLocationRelativeTo(null);
}// </editor-fold>//GEN-END:initComponents
private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-
FIRST:event_jLabel1MouseClicked
// TODO add your handling code here:
System.exit(0);
}//GEN-LAST:event_jLabel1MouseClicked
private void jLabel9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-
FIRST:event_jLabel9MouseClicked
// TODO add your handling code here:
}//GEN-LAST:event_jLabel9MouseClicked
private void rSMaterialButtonCircle1ActionPerformed(java.awt.event.ActionEvent
evt) {//GEN-FIRST:event_rSMaterialButtonCircle1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_rSMaterialButtonCircle1ActionPerformed
private void jLabel1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-
FIRST:event_jLabel1MouseEntered
// TODO add your handling code here:
jLabel1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
}//GEN-LAST:event_jLabel1MouseEntered
private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-
FIRST:event_jComboBox1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jComboBox1ActionPerformed
private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-
FIRST:event_jComboBox2ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jComboBox2ActionPerformed
/**
* @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(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(CreateAccount.class.getName()).log(java.util.log
ging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new CreateAccount().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private app.bolivia.swing.JCTextField jCTextField2;
private javax.swing.JComboBox<String> jComboBox1;
private javax.swing.JComboBox<String> jComboBox2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPasswordField password;
private rojerusan.RSMaterialButtonCircle rSMaterialButtonCircle1;
private app.bolivia.swing.JCTextField user_name;
private app.bolivia.swing.JCTextField user_name1;
private app.bolivia.swing.JCTextField user_name2;
private app.bolivia.swing.JCTextField user_name3;
private app.bolivia.swing.JCTextField user_name4;
private java.awt.Label wrong_input;
// End of variables declaration//GEN-END:variables
}