Need Gui Java Code Interfaces Example Like Shop Least Account Registration Log Q37198937

i need a gui a java code interfaces a example like ashop or at least a account registration or log in


Answer


This registration form created using GUI by swing package injava

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.*;

class RegistrationFormDesign {

JLabellabel1,label2,label3,label4,label5,label6,label7,label8,label9,label10,label11,label12,s1,s2,s3;
JPanel panel;
JFrame jf;
JButton register;
JTextFieldtextfield1,textfield2,textfield3,textfield4a,textfield4b,textfield4c,textfield5,textfield6,textfield7,textfield8,textfield9;
JPasswordField passwordfield1;
JRadioButton radiobutton2,radiobutton3;
Stringname,gender,dob1,dob2,dob,dobb,password,mobileNumber,email,area,state,nationality,selectedState;
JComboBox combobox1;
Connection con1;
Statement st1;
int index,count;
String states[] = new String[50];

public RegistrationFormDesign()
{
initComponents();
event();

}

public void initComponents() {
jf=new javax.swing.JFrame(“Registration Form”);
panel=new javax.swing.JPanel();
jf.add(panel);
panel.setBackground(new Color(191,239,255));
panel.setLayout(null);
jf.setSize(970,700);
jf.show();

label1=new javax.swing.JLabel(“Registration Form”);
label1.setFont(new Font(“Dialog”, Font.ITALIC, 24));
label1.setBounds(300,20,400,40);
panel.add(label1);

label2=new javax.swing.JLabel(“Name”);
label2.setFont(new Font(“Dialog”, Font.BOLD, 20));
label2.setBounds(100,80,150,40);
panel.add(label2);

label3=new javax.swing.JLabel(“Gender”);
label3.setFont(new Font(“Dialog”, Font.BOLD, 20));
label3.setBounds(100,140,150,40);
panel.add(label3);

label4=new javax.swing.JLabel(“Password”);
label4.setFont(new Font(“Dialog”, Font.BOLD, 20));
label4.setBounds(100,200,150,40);
panel.add(label4);

label5=new javax.swing.JLabel(“Date Of Birth”);
label5.setFont(new Font(“Dialog”, Font.BOLD, 20));
label5.setBounds(100,260,150,40);
panel.add(label5);

label6=new javax.swing.JLabel(“Mobile Number”);
label6.setFont(new Font(“Dialog”, Font.BOLD, 20));
label6.setBounds(100,320,150,40);
panel.add(label6);

label7=new javax.swing.JLabel(“E-mail”);
label7.setFont(new Font(“Dialog”, Font.BOLD, 20));
label7.setBounds(100,380,150,40);
panel.add(label7);

label8=new javax.swing.JLabel(“Area”);
label8.setFont(new Font(“Dialog”, Font.BOLD, 20));
label8.setBounds(100,440,150,40);
panel.add(label8);

label9=new javax.swing.JLabel(“State”);
label9.setFont(new Font(“Dialog”, Font.BOLD,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.