Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package xhire;
- import java.awt.Color;
- import java.awt.Component;
- import javax.swing.BorderFactory;
- /**
- *
- * @author Jory-Desktop
- */
- public class CustomerPane extends javax.swing.JPanel {
- /**
- * Creates new form CustomerPane
- */
- public CustomerPane() {
- 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">
- private void initComponents() {
- Filler = new javax.swing.JPanel();
- jLabel1 = new javax.swing.JLabel();
- UI_FirstName = new javax.swing.JTextField();
- jLabel2 = new javax.swing.JLabel();
- jLabel3 = new javax.swing.JLabel();
- UI_LastName = new javax.swing.JTextField();
- jLabel4 = new javax.swing.JLabel();
- UI_Email = new javax.swing.JTextField();
- jLabel5 = new javax.swing.JLabel();
- UI_PhoneNumber = new javax.swing.JTextField();
- jLabel6 = new javax.swing.JLabel();
- UI_Work = new javax.swing.JTextField();
- jLabel7 = new javax.swing.JLabel();
- UI_Role = new javax.swing.JTextField();
- UI_Password = new javax.swing.JTextField();
- jLabel8 = new javax.swing.JLabel();
- jLabel9 = new javax.swing.JLabel();
- UI_Website = new javax.swing.JTextField();
- jLabel10 = new javax.swing.JLabel();
- jLabel11 = new javax.swing.JLabel();
- jLabel12 = new javax.swing.JLabel();
- btn_Submit = new javax.swing.JButton();
- Filler.setBackground(new java.awt.Color(25, 25, 25));
- Filler.setMaximumSize(new java.awt.Dimension(1270, 878));
- Filler.setPreferredSize(new java.awt.Dimension(1270, 878));
- jLabel1.setFont(new java.awt.Font("DFSC Sans Core104", 1, 36)); // NOI18N
- jLabel1.setForeground(new java.awt.Color(255, 255, 255));
- jLabel1.setText("ADD CUSTOMER");
- UI_FirstName.setBackground(new java.awt.Color(25, 25, 25));
- UI_FirstName.setForeground(new java.awt.Color(255, 255, 255));
- UI_FirstName.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel2.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel2.setForeground(new java.awt.Color(255, 255, 255));
- jLabel2.setText("First Name");
- jLabel3.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel3.setForeground(new java.awt.Color(255, 255, 255));
- jLabel3.setText("Last Name");
- UI_LastName.setBackground(new java.awt.Color(25, 25, 25));
- UI_LastName.setForeground(new java.awt.Color(255, 255, 255));
- UI_LastName.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel4.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel4.setForeground(new java.awt.Color(255, 255, 255));
- jLabel4.setText("Email Address");
- UI_Email.setBackground(new java.awt.Color(25, 25, 25));
- UI_Email.setForeground(new java.awt.Color(255, 255, 255));
- UI_Email.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel5.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel5.setForeground(new java.awt.Color(255, 255, 255));
- jLabel5.setText("Phone Number");
- UI_PhoneNumber.setBackground(new java.awt.Color(25, 25, 25));
- UI_PhoneNumber.setForeground(new java.awt.Color(255, 255, 255));
- UI_PhoneNumber.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel6.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel6.setForeground(new java.awt.Color(255, 255, 255));
- jLabel6.setText("Comapny Of Work");
- UI_Work.setBackground(new java.awt.Color(25, 25, 25));
- UI_Work.setForeground(new java.awt.Color(255, 255, 255));
- UI_Work.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel7.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel7.setForeground(new java.awt.Color(255, 255, 255));
- jLabel7.setText("Role");
- UI_Role.setBackground(new java.awt.Color(25, 25, 25));
- UI_Role.setForeground(new java.awt.Color(255, 255, 255));
- UI_Role.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- UI_Password.setBackground(new java.awt.Color(25, 25, 25));
- UI_Password.setForeground(new java.awt.Color(255, 255, 255));
- UI_Password.setText("password");
- UI_Password.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel8.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel8.setForeground(new java.awt.Color(255, 255, 255));
- jLabel8.setText("User Password");
- jLabel9.setFont(new java.awt.Font("Microsoft New Tai Lue", 0, 14)); // NOI18N
- jLabel9.setForeground(new java.awt.Color(255, 255, 255));
- jLabel9.setText("Website");
- UI_Website.setBackground(new java.awt.Color(25, 25, 25));
- UI_Website.setForeground(new java.awt.Color(255, 255, 255));
- UI_Website.setBorder(new javax.swing.border.MatteBorder(0,0,1,0,Color.LIGHT_GRAY));
- jLabel10.setFont(new java.awt.Font("Microsoft New Tai Lue", 1, 18)); // NOI18N
- jLabel10.setForeground(new java.awt.Color(255, 255, 255));
- jLabel10.setText("Contact Infomation");
- jLabel11.setFont(new java.awt.Font("Microsoft New Tai Lue", 1, 18)); // NOI18N
- jLabel11.setForeground(new java.awt.Color(255, 255, 255));
- jLabel11.setText("Account Infomation");
- jLabel12.setFont(new java.awt.Font("Microsoft New Tai Lue", 1, 18)); // NOI18N
- jLabel12.setForeground(new java.awt.Color(255, 255, 255));
- jLabel12.setText("Work Infomation");
- btn_Submit.setText("Submit");
- btn_Submit.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseClicked(java.awt.event.MouseEvent evt) {
- btn_SubmitMouseClicked(evt);
- }
- });
- btn_Submit.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- btn_SubmitActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout FillerLayout = new javax.swing.GroupLayout(Filler);
- Filler.setLayout(FillerLayout);
- FillerLayout.setHorizontalGroup(
- FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(FillerLayout.createSequentialGroup()
- .addGap(10, 10, 10)
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 314, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel11)
- .addGroup(FillerLayout.createSequentialGroup()
- .addComponent(UI_FirstName, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(UI_LastName, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(UI_Password, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(FillerLayout.createSequentialGroup()
- .addComponent(jLabel2)
- .addGap(232, 232, 232)
- .addComponent(jLabel3)
- .addGap(233, 233, 233)
- .addComponent(jLabel8))
- .addComponent(jLabel10)
- .addGroup(FillerLayout.createSequentialGroup()
- .addComponent(UI_Email, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(UI_PhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(UI_Website, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(FillerLayout.createSequentialGroup()
- .addComponent(jLabel4)
- .addGap(213, 213, 213)
- .addComponent(jLabel5)
- .addGap(205, 205, 205)
- .addComponent(jLabel9))
- .addComponent(jLabel12)
- .addGroup(FillerLayout.createSequentialGroup()
- .addComponent(UI_Work, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(UI_Role, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(FillerLayout.createSequentialGroup()
- .addComponent(jLabel6)
- .addGap(183, 183, 183)
- .addComponent(jLabel7))
- .addComponent(btn_Submit, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)))
- );
- FillerLayout.setVerticalGroup(
- FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(FillerLayout.createSequentialGroup()
- .addGap(11, 11, 11)
- .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(11, 11, 11)
- .addComponent(jLabel11)
- .addGap(4, 4, 4)
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(UI_FirstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(UI_LastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(UI_Password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel2)
- .addComponent(jLabel3)
- .addComponent(jLabel8))
- .addGap(11, 11, 11)
- .addComponent(jLabel10)
- .addGap(4, 4, 4)
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(UI_Email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(UI_PhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(UI_Website, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel4)
- .addComponent(jLabel5)
- .addComponent(jLabel9))
- .addGap(14, 14, 14)
- .addComponent(jLabel12)
- .addGap(4, 4, 4)
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(UI_Work, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(UI_Role, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(FillerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel6)
- .addComponent(jLabel7))
- .addGap(18, 18, 18)
- .addComponent(btn_Submit))
- );
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(Filler, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1200, Short.MAX_VALUE)
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(Filler, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
- );
- }// </editor-fold>
- private void btn_SubmitActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- }
- private void btn_SubmitMouseClicked(java.awt.event.MouseEvent evt) {
- String UserName = UI_FirstName.getText();
- String UserLastName = UI_LastName.getText();
- String PasswordPass = UI_Password.getText();
- String Email = UI_Email.getText();
- String PhoneNumber = UI_PhoneNumber.getText();
- String Website = UI_Website.getText();
- String Work = UI_Work.getText();
- String Role = UI_Role.getText();
- DataAccess DA = new DataAccess();
- DA.passdata_Customer(UserName,UserLastName,PasswordPass,Email,PhoneNumber,Website,Work,Role);
- }
- // Variables declaration - do not modify
- private javax.swing.JPanel Filler;
- private javax.swing.JTextField UI_Email;
- private javax.swing.JTextField UI_FirstName;
- private javax.swing.JTextField UI_LastName;
- private javax.swing.JTextField UI_Password;
- private javax.swing.JTextField UI_PhoneNumber;
- private javax.swing.JTextField UI_Role;
- private javax.swing.JTextField UI_Website;
- private javax.swing.JTextField UI_Work;
- private javax.swing.JButton btn_Submit;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel10;
- private javax.swing.JLabel jLabel11;
- private javax.swing.JLabel jLabel12;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel5;
- private javax.swing.JLabel jLabel6;
- private javax.swing.JLabel jLabel7;
- private javax.swing.JLabel jLabel8;
- private javax.swing.JLabel jLabel9;
- // End of variables declaration
- }
Add Comment
Please, Sign In to add comment