0% found this document useful (0 votes)
58 views8 pages

Create Account Form Design

This document contains the code for a Java class called CreateAccount that defines a graphical user interface (GUI) for creating user accounts. It imports GUI components like labels, text fields, and buttons from external libraries. The class extends the JFrame class and contains code to initialize the form layout, including placing labels and input fields to collect a user's name, email, password, etc. It also includes combo boxes to select a role and project. There is a button to submit the signup form.

Uploaded by

Ayush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views8 pages

Create Account Form Design

This document contains the code for a Java class called CreateAccount that defines a graphical user interface (GUI) for creating user accounts. It imports GUI components like labels, text fields, and buttons from external libraries. The class extends the JFrame class and contains code to initialize the form layout, including placing labels and input fields to collect a user's name, email, password, etc. It also includes combo boxes to select a role and project. There is a button to submit the signup form.

Uploaded by

Ayush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package smartGUI.

createAccount;

import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];

/**
*
* @author Ayush Bhardwaj
*/
public class CreateAccount extends [Link] {

/**
* 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 [Link]();


jLabel16 = new [Link]();
user_name1 = new [Link]();
jLabel7 = new [Link]();
jLabel8 = new [Link]();
jLabel14 = new [Link]();
password = new [Link]();
jLabel13 = new [Link]();
user_name = new [Link]();
jLabel17 = new [Link]();
user_name2 = new [Link]();
jLabel18 = new [Link]();
jLabel19 = new [Link]();
user_name3 = new [Link]();
user_name4 = new [Link]();
jLabel20 = new [Link]();
jComboBox1 = new [Link]<>();
jLabel21 = new [Link]();
jComboBox2 = new [Link]<>();
rSMaterialButtonCircle1 = new [Link]();
jPanel2 = new [Link]();
jLabel1 = new [Link]();
jPanel3 = new [Link]();
jLabel9 = new [Link]();
jLabel10 = new [Link]();
jLabel11 = new [Link]();
jLabel12 = new [Link]();
jCTextField2 = new [Link]();
wrong_input = new [Link]();
jLabel2 = new [Link]();
jLabel3 = new [Link]();
jLabel5 = new [Link]();

setDefaultCloseOperation([Link].EXIT_ON_CLOSE);
setUndecorated(true);
getContentPane().setLayout(new [Link]());

[Link](new [Link](102, 102, 255));


[Link](new [Link]());

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("E-Mail :");
[Link](jLabel16, new [Link](40,
240, -1, -1));

user_name1.setBackground(new [Link](102, 102, 255));


user_name1.setBorder([Link](0, 0, 1,
0, new [Link](255, 255, 255)));
[Link](user_name1, new
[Link](40, 250, 360, 30));

[Link](new [Link]("Microsoft JhengHei", 1, 18)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Create Account");
[Link](jLabel7, new [Link](170,
30, -1, -1));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Create Your Account");
[Link](jLabel8, new [Link](180,
60, -1, -1));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Password :");
[Link](jLabel14, new [Link](40,
300, -1, -1));

[Link](new [Link](102, 102, 255));


[Link]([Link](0, 0, 1, 0,
new [Link](255, 255, 255)));
[Link](password, new [Link](40,
310, 360, 30));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Token :");
[Link](jLabel13, new [Link](40,
360, -1, -1));
user_name.setBackground(new [Link](102, 102, 255));
user_name.setBorder([Link](0, 0, 1, 0,
new [Link](255, 255, 255)));
[Link](user_name, new
[Link](40, 370, 360, 30));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Last Name :");
[Link](jLabel17, new
[Link](260, 110, -1, -1));

user_name2.setBackground(new [Link](102, 102, 255));


user_name2.setBorder([Link](0, 0, 1,
0, new [Link](255, 255, 255)));
[Link](user_name2, new
[Link](260, 130, 140, 30));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Username or Emp. Id. :");
[Link](jLabel18, new [Link](40,
170, -1, -1));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Projects :");
[Link](jLabel19, new
[Link](210, 430, -1, -1));

user_name3.setBackground(new [Link](102, 102, 255));


user_name3.setBorder([Link](0, 0, 1,
0, new [Link](255, 255, 255)));
[Link](user_name3, new
[Link](40, 190, 360, 30));

user_name4.setBackground(new [Link](102, 102, 255));


user_name4.setBorder([Link](0, 0, 1,
0, new [Link](255, 255, 255)));
[Link](user_name4, new
[Link](40, 130, 140, 30));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("First Name :");
[Link](jLabel20, new [Link](40,
110, -1, -1));

[Link](new [Link]<>(new String[]


{ "Item 1", "Item 2", "Item 3", "Item 4" }));
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jComboBox1ActionPerformed(evt);
}
});
[Link](jComboBox1, new
[Link](280, 430, 120, -1));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Role :");
[Link](jLabel21, new [Link](40,
430, -1, -1));

[Link](new [Link]<>(new String[]


{ "Item 1", "Item 2", "Item 3", "Item 4" }));
[Link](new [Link]() {
public void actionPerformed([Link] evt) {
jComboBox2ActionPerformed(evt);
}
});
[Link](jComboBox2, new
[Link](80, 430, 100, -1));

[Link](new [Link](153, 153, 255));


[Link]("signup");
[Link](new [Link]("Roboto Medium", 0, 10));
// NOI18N
[Link](new
[Link]() {
public void actionPerformed([Link] evt) {
rSMaterialButtonCircle1ActionPerformed(evt);
}
});
[Link](rSMaterialButtonCircle1, new
[Link](130, 490, 180, 40));

getContentPane().add(jPanel1, new
[Link](0, 0, 470, 550));

[Link](new [Link](255, 255, 255));


[Link](new [Link]());

[Link](new [Link]("Yu Gothic UI", 1, 26)); // NOI18N


[Link]("x");
[Link](new [Link]() {
public void mouseClicked([Link] evt) {
jLabel1MouseClicked(evt);
}
public void mouseEntered([Link] evt) {
jLabel1MouseEntered(evt);
}
});
[Link](jLabel1, new [Link](320,
0, -1, -1));

[Link](new [Link](102, 102, 255));


[Link](new [Link]());

[Link](new [Link]("Yu Gothic UI", 1, 26)); // NOI18N


[Link]("x");
[Link](new [Link]() {
public void mouseClicked([Link] evt) {
jLabel9MouseClicked(evt);
}
});
[Link](jLabel9, new [Link](320,
0, -1, -1));
[Link](new [Link]("Verdana", 0, 12)); // NOI18N
[Link](new [Link](255, 255, 255));
[Link]("Username :");
[Link](jLabel10, new [Link](30,
210, -1, -1));

[Link](new [Link]("Microsoft JhengHei", 1, 18)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Welcome!");
[Link](jLabel11, new
[Link](130, 50, -1, -1));

[Link](new [Link]("Verdana", 0, 12)); // NOI18N


[Link](new [Link](255, 255, 255));
[Link]("Login To Your Account");
[Link](jLabel12, new
[Link](110, 100, -1, -1));

[Link](new [Link](102, 102, 255));


[Link]([Link](0, 0, 1,
0, new [Link](255, 255, 255)));
[Link]("Enter Username...");
[Link](jCTextField2, new
[Link](30, 230, 250, 30));

[Link](jPanel3, new [Link](470,


0, 350, 550));

wrong_input.setFont(new [Link]("Verdana", 0, 12)); // NOI18N


wrong_input.setForeground(new [Link](255, 255, 255));
wrong_input.setName(""); // NOI18N
[Link](wrong_input, new
[Link](80, 440, 210, -1));

[Link](new [Link](255, 255, 255));


[Link](new [Link]("Nirmala UI", 1, 16)); // NOI18N
[Link](new [Link](102, 102, 255));
[Link]("Server Monitoring And Reporting Tool");
[Link](jLabel2, new [Link](30,
120, -1, -1));

[Link](new [Link](255, 255, 255));


[Link](new [Link]("Nirmala UI", 1, 16)); // NOI18N
[Link](new [Link](255, 0, 51));
[Link]("SMART");
[Link](jLabel3, new [Link](140,
90, -1, -1));

BufferedImage img=null;
try {
img = [Link](new File("C:\\Users\\Ayush Bhardwaj\\Desktop\\GUI\\
[Link]"));
} catch (IOException e) {
[Link]();
}
Image image = [Link](240, 180, Image.SCALE_SMOOTH);
BufferedImage buffered = new BufferedImage(240, 180,
BufferedImage.TYPE_INT_RGB);
[Link]().drawImage(image, 0, 0 , null);
ImageIcon imageIcon = new ImageIcon(buffered);
[Link](new
[Link](getClass().getResource("/com/mycompany/smartGUI/icon/
[Link]"))); // NOI18N
[Link](jLabel5, new [Link](60,
190, 240, 230));

getContentPane().add(jPanel2, new
[Link](470, 0, 350, 550));

pack();
setLocationRelativeTo(null);
}// </editor-fold>//GEN-END:initComponents

private void jLabel1MouseClicked([Link] evt) {//GEN-


FIRST:event_jLabel1MouseClicked
// TODO add your handling code here:
[Link](0);
}//GEN-LAST:event_jLabel1MouseClicked

private void jLabel9MouseClicked([Link] evt) {//GEN-


FIRST:event_jLabel9MouseClicked
// TODO add your handling code here:
}//GEN-LAST:event_jLabel9MouseClicked

private void rSMaterialButtonCircle1ActionPerformed([Link]


evt) {//GEN-FIRST:event_rSMaterialButtonCircle1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_rSMaterialButtonCircle1ActionPerformed

private void jLabel1MouseEntered([Link] evt) {//GEN-


FIRST:event_jLabel1MouseEntered
// TODO add your handling code here:
[Link]([Link](Cursor.HAND_CURSOR));
}//GEN-LAST:event_jLabel1MouseEntered

private void jComboBox1ActionPerformed([Link] evt) {//GEN-


FIRST:event_jComboBox1ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jComboBox1ActionPerformed

private void jComboBox2ActionPerformed([Link] 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
[Link]
*/
try {
for ([Link] info :
[Link]()) {
if ("Nimbus".equals([Link]())) {
[Link]([Link]());
break;
}
}
} catch (ClassNotFoundException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (InstantiationException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch (IllegalAccessException ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
} catch ([Link] ex) {

[Link]([Link]()).log([Link]
[Link], null, ex);
}
//</editor-fold>
//</editor-fold>

/* Create and display the form */


[Link](new Runnable() {
public void run() {
new CreateAccount().setVisible(true);
}
});
}

// Variables declaration - do not modify//GEN-BEGIN:variables


private [Link] jCTextField2;
private [Link]<String> jComboBox1;
private [Link]<String> jComboBox2;
private [Link] jLabel1;
private [Link] jLabel10;
private [Link] jLabel11;
private [Link] jLabel12;
private [Link] jLabel13;
private [Link] jLabel14;
private [Link] jLabel16;
private [Link] jLabel17;
private [Link] jLabel18;
private [Link] jLabel19;
private [Link] jLabel2;
private [Link] jLabel20;
private [Link] jLabel21;
private [Link] jLabel3;
private [Link] jLabel5;
private [Link] jLabel7;
private [Link] jLabel8;
private [Link] jLabel9;
private [Link] jPanel1;
private [Link] jPanel2;
private [Link] jPanel3;
private [Link] password;
private [Link] rSMaterialButtonCircle1;
private [Link] user_name;
private [Link] user_name1;
private [Link] user_name2;
private [Link] user_name3;
private [Link] user_name4;
private [Link] wrong_input;
// End of variables declaration//GEN-END:variables
}

You might also like