×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Tanvi Pandit
Added: Nov 12, 2016 7:21 PM
Views: 2151
Tags: no tags
  1.  
  2. /*
  3.  * To change this license header, choose License Headers in Project Properties.
  4.  * To change this template file, choose Tools | Templates
  5.  * and open the template in the editor.
  6.  */
  7. package reservation;
  8.  
  9. /**
  10.  *
  11.  * @author SAWANT's
  12.  */
  13. public class signup extends javax.swing.JFrame {
  14.  
  15.     /**
  16.      * Creates new form Signup
  17.      */
  18.     public signup() {
  19.         initComponents();
  20.     }
  21.  
  22.     /**
  23.      * This method is called from within the constructor to initialize the form.
  24.      * WARNING: Do NOT modify this code. The content of this method is always
  25.      * regenerated by the Form Editor.
  26.      */
  27.     @SuppressWarnings("unchecked")
  28.     // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
  29.     private void initComponents() {
  30.  
  31.         jLabel1 = new javax.swing.JLabel();
  32.         jLabel2 = new javax.swing.JLabel();
  33.         jLabel3 = new javax.swing.JLabel();
  34.         jLabel4 = new javax.swing.JLabel();
  35.         jTextField1 = new javax.swing.JTextField();
  36.         jTextField2 = new javax.swing.JTextField();
  37.         jTextField3 = new javax.swing.JTextField();
  38.         jLabel5 = new javax.swing.JLabel();
  39.         jLabel6 = new javax.swing.JLabel();
  40.         jTextField5 = new javax.swing.JTextField();
  41.         jPasswordField1 = new javax.swing.JPasswordField();
  42.         jRadioButton1 = new javax.swing.JRadioButton();
  43.         jRadioButton2 = new javax.swing.JRadioButton();
  44.         jRadioButton3 = new javax.swing.JRadioButton();
  45.         jButton1 = new javax.swing.JButton();
  46.         jLabel7 = new javax.swing.JLabel();
  47.  
  48.         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  49.         getContentPane().setLayout(null);
  50.  
  51.         jLabel1.setText("First Name");
  52.         getContentPane().add(jLabel1);
  53.         jLabel1.setBounds(25, 20, 61, 14);
  54.  
  55.         jLabel2.setText("Last Name");
  56.         getContentPane().add(jLabel2);
  57.         jLabel2.setBounds(25, 55, 61, 14);
  58.  
  59.         jLabel3.setText("Date of Birth");
  60.         getContentPane().add(jLabel3);
  61.         jLabel3.setBounds(25, 96, 61, 14);
  62.  
  63.         jLabel4.setText("Gender");
  64.         getContentPane().add(jLabel4);
  65.         jLabel4.setBounds(25, 135, 61, 14);
  66.  
  67.         jTextField1.addActionListener(new java.awt.event.ActionListener() {
  68.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  69.                 jTextField1ActionPerformed(evt);
  70.             }
  71.         });
  72.         getContentPane().add(jTextField1);
  73.         jTextField1.setBounds(133, 17, 266, 20);
  74.  
  75.         jTextField2.addActionListener(new java.awt.event.ActionListener() {
  76.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  77.                 jTextField2ActionPerformed(evt);
  78.             }
  79.         });
  80.         getContentPane().add(jTextField2);
  81.         jTextField2.setBounds(133, 55, 266, 20);
  82.         getContentPane().add(jTextField3);
  83.         jTextField3.setBounds(133, 93, 266, 20);
  84.  
  85.         jLabel5.setText("ID");
  86.         getContentPane().add(jLabel5);
  87.         jLabel5.setBounds(25, 217, 61, 14);
  88.  
  89.         jLabel6.setText("Password");
  90.         getContentPane().add(jLabel6);
  91.         jLabel6.setBounds(25, 240, 61, 14);
  92.         getContentPane().add(jTextField5);
  93.         jTextField5.setBounds(133, 214, 266, 20);
  94.         getContentPane().add(jPasswordField1);
  95.         jPasswordField1.setBounds(133, 240, 266, 20);
  96.  
  97.         jRadioButton1.setText("Male");
  98.         getContentPane().add(jRadioButton1);
  99.         jRadioButton1.setBounds(133, 131, 60, 23);
  100.  
  101.         jRadioButton2.setText("Female");
  102.         jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
  103.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  104.                 jRadioButton2ActionPerformed(evt);
  105.             }
  106.         });
  107.         getContentPane().add(jRadioButton2);
  108.         jRadioButton2.setBounds(133, 154, 60, 23);
  109.  
  110.         jRadioButton3.setText("Other");
  111.         getContentPane().add(jRadioButton3);
  112.         jRadioButton3.setBounds(133, 177, 60, 23);
  113.  
  114.         jButton1.setText("Submit");
  115.         getContentPane().add(jButton1);
  116.         jButton1.setBounds(172, 278, 111, 23);
  117.  
  118.      //   jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/secure/cust_bg_3051_1345233908643.jpg"))); // NOI18N
  119.        // getContentPane().add(jLabel7);
  120.         //jLabel7.setBounds(0, 0, 430, 310);
  121.  
  122.         pack();
  123.     }// </editor-fold>                        
  124.  
  125.     private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  126.         // TODO add your handling code here:
  127.     }                                          
  128.  
  129.     private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  130.         // TODO add your handling code here:
  131.     }                                          
  132.  
  133.     private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                              
  134.         // TODO add your handling code here:
  135.     }                                            
  136.  
  137.     /**
  138.      * @param args the command line arguments
  139.      */
  140.     public static void main(String args[]) {
  141.         /* Set the Nimbus look and feel */
  142.         //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  143.         /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  144.          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  145.          */
  146.         try {
  147.             for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  148.                 if ("Nimbus".equals(info.getName())) {
  149.                     javax.swing.UIManager.setLookAndFeel(info.getClassName());
  150.                     break;
  151.                 }
  152.             }
  153.         } catch (ClassNotFoundException ex) {
  154.             java.util.logging.Logger.getLogger(Signup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  155.         } catch (InstantiationException ex) {
  156.             java.util.logging.Logger.getLogger(Signup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  157.         } catch (IllegalAccessException ex) {
  158.             java.util.logging.Logger.getLogger(Signup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  159.         } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  160.             java.util.logging.Logger.getLogger(Signup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  161.         }
  162.         //</editor-fold>
  163.  
  164.         /* Create and display the form */
  165.         java.awt.EventQueue.invokeLater(new Runnable() {
  166.             public void run() {
  167.                 new signup().setVisible(true);
  168.             }
  169.         });
  170.     }
  171.  
  172.     // Variables declaration - do not modify                    
  173.     private javax.swing.JButton jButton1;
  174.     private javax.swing.JLabel jLabel1;
  175.     private javax.swing.JLabel jLabel2;
  176.     private javax.swing.JLabel jLabel3;
  177.     private javax.swing.JLabel jLabel4;
  178.     private javax.swing.JLabel jLabel5;
  179.     private javax.swing.JLabel jLabel6;
  180.     private javax.swing.JLabel jLabel7;
  181.     private javax.swing.JPasswordField jPasswordField1;
  182.     private javax.swing.JRadioButton jRadioButton1;
  183.     private javax.swing.JRadioButton jRadioButton2;
  184.     private javax.swing.JRadioButton jRadioButton3;
  185.     private javax.swing.JTextField jTextField1;
  186.     private javax.swing.JTextField jTextField2;
  187.     private javax.swing.JTextField jTextField3;
  188.     private javax.swing.JTextField jTextField5;
  189.     // End of variables declaration                  
  190. }
  191.