Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package bloodbank;
- /**
- *
- * @author dinesh
- */
- import java.sql.*;
- import javax.swing.JOptionPane;
- public class donoregister extends javax.swing.JPanel {
- /**
- * Creates new form donoregister
- */
- public donoregister() {
- 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() {
- buttonGroup1 = new javax.swing.ButtonGroup();
- buttonGroup2 = new javax.swing.ButtonGroup();
- buttonGroup3 = new javax.swing.ButtonGroup();
- buttonGroup4 = new javax.swing.ButtonGroup();
- buttonGroup5 = new javax.swing.ButtonGroup();
- buttonGroup6 = new javax.swing.ButtonGroup();
- buttonGroup7 = new javax.swing.ButtonGroup();
- buttonGroup8 = new javax.swing.ButtonGroup();
- jScrollBar2 = new javax.swing.JScrollBar();
- buttonGroup9 = new javax.swing.ButtonGroup();
- buttonGroup10 = new javax.swing.ButtonGroup();
- buttonGroup11 = new javax.swing.ButtonGroup();
- buttonGroup12 = new javax.swing.ButtonGroup();
- buttonGroup13 = new javax.swing.ButtonGroup();
- buttonGroup14 = new javax.swing.ButtonGroup();
- buttonGroup15 = new javax.swing.ButtonGroup();
- buttonGroup16 = new javax.swing.ButtonGroup();
- buttonGroup17 = new javax.swing.ButtonGroup();
- buttonGroup18 = new javax.swing.ButtonGroup();
- jLabel1 = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- jDateChooser1 = new com.toedter.calendar.JDateChooser();
- jLabel3 = new javax.swing.JLabel();
- jTextField1 = new javax.swing.JTextField();
- jPanel1 = new javax.swing.JPanel();
- jLabel4 = new javax.swing.JLabel();
- jTextField2 = new javax.swing.JTextField();
- jLabel5 = new javax.swing.JLabel();
- jTextField3 = new javax.swing.JTextField();
- jLabel6 = new javax.swing.JLabel();
- jDateChooser2 = new com.toedter.calendar.JDateChooser();
- jLabel7 = new javax.swing.JLabel();
- jRadioButton1 = new javax.swing.JRadioButton();
- jRadioButton2 = new javax.swing.JRadioButton();
- jLabel8 = new javax.swing.JLabel();
- jTextField4 = new javax.swing.JTextField();
- jLabel9 = new javax.swing.JLabel();
- jTextField5 = new javax.swing.JTextField();
- jLabel10 = new javax.swing.JLabel();
- jTextField6 = new javax.swing.JTextField();
- jLabel11 = new javax.swing.JLabel();
- jTextField7 = new javax.swing.JTextField();
- jLabel12 = new javax.swing.JLabel();
- jTextField8 = new javax.swing.JTextField();
- jLabel13 = new javax.swing.JLabel();
- jTextField9 = new javax.swing.JTextField();
- jLabel14 = new javax.swing.JLabel();
- jTextField10 = new javax.swing.JTextField();
- jLabel15 = new javax.swing.JLabel();
- jTextField11 = new javax.swing.JTextField();
- jLabel16 = new javax.swing.JLabel();
- jTextField12 = new javax.swing.JTextField();
- jButton1 = new javax.swing.JButton();
- jPanel2 = new javax.swing.JPanel();
- jLabel17 = new javax.swing.JLabel();
- jRadioButton3 = new javax.swing.JRadioButton();
- jRadioButton4 = new javax.swing.JRadioButton();
- jLabel18 = new javax.swing.JLabel();
- jRadioButton5 = new javax.swing.JRadioButton();
- jRadioButton6 = new javax.swing.JRadioButton();
- jLabel19 = new javax.swing.JLabel();
- jRadioButton7 = new javax.swing.JRadioButton();
- jRadioButton8 = new javax.swing.JRadioButton();
- jLabel20 = new javax.swing.JLabel();
- jRadioButton9 = new javax.swing.JRadioButton();
- jRadioButton10 = new javax.swing.JRadioButton();
- jLabel21 = new javax.swing.JLabel();
- jRadioButton11 = new javax.swing.JRadioButton();
- jRadioButton12 = new javax.swing.JRadioButton();
- jLabel22 = new javax.swing.JLabel();
- jRadioButton13 = new javax.swing.JRadioButton();
- jRadioButton14 = new javax.swing.JRadioButton();
- jLabel23 = new javax.swing.JLabel();
- jRadioButton15 = new javax.swing.JRadioButton();
- jRadioButton16 = new javax.swing.JRadioButton();
- jScrollBar1 = new javax.swing.JScrollBar();
- jLabel24 = new javax.swing.JLabel();
- jRadioButton17 = new javax.swing.JRadioButton();
- jRadioButton18 = new javax.swing.JRadioButton();
- jLabel25 = new javax.swing.JLabel();
- jLabel26 = new javax.swing.JLabel();
- jRadioButton19 = new javax.swing.JRadioButton();
- jRadioButton20 = new javax.swing.JRadioButton();
- jRadioButton21 = new javax.swing.JRadioButton();
- jRadioButton22 = new javax.swing.JRadioButton();
- jLabel27 = new javax.swing.JLabel();
- jRadioButton23 = new javax.swing.JRadioButton();
- jRadioButton24 = new javax.swing.JRadioButton();
- jLabel28 = new javax.swing.JLabel();
- jRadioButton25 = new javax.swing.JRadioButton();
- jRadioButton26 = new javax.swing.JRadioButton();
- jLabel29 = new javax.swing.JLabel();
- jRadioButton27 = new javax.swing.JRadioButton();
- jRadioButton28 = new javax.swing.JRadioButton();
- jLabel30 = new javax.swing.JLabel();
- jRadioButton29 = new javax.swing.JRadioButton();
- jRadioButton30 = new javax.swing.JRadioButton();
- jLabel31 = new javax.swing.JLabel();
- jRadioButton31 = new javax.swing.JRadioButton();
- jRadioButton32 = new javax.swing.JRadioButton();
- jLabel32 = new javax.swing.JLabel();
- jRadioButton33 = new javax.swing.JRadioButton();
- jRadioButton34 = new javax.swing.JRadioButton();
- jLabel1.setText("BLOOD DONOR DETAILS");
- jLabel2.setText("DATE");
- jLabel3.setText("TIME");
- jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("PERSONAL DETAILS"));
- jLabel4.setText("UNIT NO");
- jLabel5.setText("NAME");
- jLabel6.setText("DOB");
- jLabel7.setText("GENDER");
- buttonGroup1.add(jRadioButton1);
- jRadioButton1.setText("MALE");
- buttonGroup1.add(jRadioButton2);
- jRadioButton2.setText("FEMALE");
- jLabel8.setText("AGE");
- jTextField4.addFocusListener(new java.awt.event.FocusAdapter() {
- public void focusGained(java.awt.event.FocusEvent evt) {
- jTextField4FocusGained(evt);
- }
- });
- jLabel9.setText("DOOR NO");
- jLabel10.setText("STREET");
- jLabel11.setText("VILLAGE/CITY");
- jLabel12.setText("DISTRICT");
- jLabel13.setText("PIN CODE");
- jLabel14.setText("PHONE");
- jLabel15.setText("E-MAIL");
- jLabel16.setText("OCCUPATION");
- jButton1.setText("jButton1");
- jButton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- jButton1ActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel4)
- .addComponent(jLabel5)
- .addComponent(jLabel6)
- .addComponent(jLabel8)
- .addComponent(jLabel9)
- .addComponent(jLabel11)
- .addComponent(jLabel13)
- .addComponent(jLabel15))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addComponent(jTextField11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 80, Short.MAX_VALUE)
- .addComponent(jTextField9, javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jTextField7, javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jTextField5, javax.swing.GroupLayout.Alignment.LEADING))
- .addGap(53, 53, 53)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel10)
- .addComponent(jLabel12)
- .addComponent(jLabel14)
- .addComponent(jLabel16))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(jTextField6)
- .addComponent(jTextField8)
- .addComponent(jTextField10)
- .addComponent(jTextField12, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jButton1))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addComponent(jDateChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel7))
- .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton2)
- .addComponent(jRadioButton1))))
- .addGap(0, 0, Short.MAX_VALUE)))
- .addContainerGap())
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel4)
- .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel5)
- .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel6)
- .addComponent(jDateChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel8)
- .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel7)
- .addComponent(jRadioButton1))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jRadioButton2)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel9)
- .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel10)
- .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jLabel11)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel12)
- .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGap(1, 1, 1)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel13)
- .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel14)
- .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel15)
- .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel16)
- .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jButton1))
- .addGap(40, 40, 40))
- );
- jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("MEDICAL DETAILS"));
- jLabel17.setText("Jaundice within 1 year:");
- buttonGroup2.add(jRadioButton3);
- jRadioButton3.setText("YES");
- buttonGroup2.add(jRadioButton4);
- jRadioButton4.setText("NO");
- jLabel18.setText("Bronchial Asthma:");
- buttonGroup3.add(jRadioButton5);
- jRadioButton5.setText("YES");
- buttonGroup3.add(jRadioButton6);
- jRadioButton6.setText("NO");
- jLabel19.setText("Diabetes:");
- buttonGroup4.add(jRadioButton7);
- jRadioButton7.setText("YES");
- buttonGroup4.add(jRadioButton8);
- jRadioButton8.setText("NO");
- jLabel20.setText("Hypertension:");
- buttonGroup5.add(jRadioButton9);
- jRadioButton9.setText("YES");
- buttonGroup5.add(jRadioButton10);
- jRadioButton10.setText("NO");
- jLabel21.setText("Blood Donation within 3 months:");
- buttonGroup6.add(jRadioButton11);
- jRadioButton11.setText("YES");
- buttonGroup6.add(jRadioButton12);
- jRadioButton12.setText("NO");
- jLabel22.setText("Undergoing Medication:");
- buttonGroup7.add(jRadioButton13);
- jRadioButton13.setText("YES");
- buttonGroup7.add(jRadioButton14);
- jRadioButton14.setText("NO");
- jLabel23.setText("Typhoid within 12 months:");
- buttonGroup8.add(jRadioButton15);
- jRadioButton15.setText("YES");
- buttonGroup8.add(jRadioButton16);
- jRadioButton16.setText("NO");
- jLabel24.setText("Malaria within 6 months:");
- buttonGroup10.add(jRadioButton17);
- jRadioButton17.setText("YES");
- buttonGroup10.add(jRadioButton18);
- jRadioButton18.setText("NO");
- jLabel25.setText("Major operations within 12 months:");
- jLabel26.setText("Injections within 2 weeks");
- buttonGroup11.add(jRadioButton19);
- jRadioButton19.setText("YES");
- buttonGroup11.add(jRadioButton20);
- jRadioButton20.setText("NO");
- buttonGroup12.add(jRadioButton21);
- jRadioButton21.setText("YES");
- buttonGroup12.add(jRadioButton22);
- jRadioButton22.setText("NO");
- jLabel27.setText("Blood Transfusions received within 6 months:");
- buttonGroup13.add(jRadioButton23);
- jRadioButton23.setText("YES");
- buttonGroup13.add(jRadioButton24);
- jRadioButton24.setText("NO");
- jLabel28.setText("Vaccinated in past 6 months:");
- buttonGroup14.add(jRadioButton25);
- jRadioButton25.setText("YES");
- buttonGroup14.add(jRadioButton26);
- jRadioButton26.setText("NO");
- jLabel29.setText("Administered Immuno Globulien in the past 1 year:");
- buttonGroup15.add(jRadioButton27);
- jRadioButton27.setText("YES");
- buttonGroup15.add(jRadioButton28);
- jRadioButton28.setText("NO");
- jLabel30.setText("Done Tatoo in past 6 months:");
- buttonGroup16.add(jRadioButton29);
- jRadioButton29.setText("YES");
- buttonGroup16.add(jRadioButton30);
- jRadioButton30.setText("NO");
- jLabel31.setText("Allergies or Skin Diseases:");
- buttonGroup17.add(jRadioButton31);
- jRadioButton31.setText("YES");
- buttonGroup17.add(jRadioButton32);
- jRadioButton32.setText("NO");
- jLabel32.setText("Bleeding Tendencies:");
- buttonGroup18.add(jRadioButton33);
- jRadioButton33.setText("YES");
- buttonGroup18.add(jRadioButton34);
- jRadioButton34.setText("NO");
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2.setLayout(jPanel2Layout);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jLabel30)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel31)
- .addComponent(jLabel24)
- .addComponent(jLabel17)
- .addComponent(jLabel18)
- .addComponent(jLabel22)
- .addComponent(jLabel23)
- .addComponent(jLabel19)
- .addComponent(jLabel20)
- .addComponent(jLabel21)
- .addComponent(jLabel25)
- .addComponent(jLabel26)
- .addComponent(jLabel27)
- .addComponent(jLabel29)
- .addComponent(jLabel28)
- .addComponent(jLabel32))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 114, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton15)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton16))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton13)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton14))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton7)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton8))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton4))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton5)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton6))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton9)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton10))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton11)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton12))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton17)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton18))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addComponent(jRadioButton19)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jRadioButton20))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jRadioButton21)
- .addComponent(jRadioButton23)
- .addComponent(jRadioButton25))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton24)
- .addComponent(jRadioButton22)
- .addComponent(jRadioButton26)))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jRadioButton29)
- .addComponent(jRadioButton27)
- .addComponent(jRadioButton31)
- .addComponent(jRadioButton33))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton28)
- .addComponent(jRadioButton30)
- .addComponent(jRadioButton32)
- .addComponent(jRadioButton34))))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
- .addComponent(jScrollBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel17)
- .addComponent(jRadioButton3)
- .addComponent(jRadioButton4))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel18)
- .addComponent(jRadioButton5)
- .addComponent(jRadioButton6))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel19)
- .addComponent(jRadioButton7)
- .addComponent(jRadioButton8))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel20)
- .addComponent(jRadioButton9)
- .addComponent(jRadioButton10))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel21)
- .addComponent(jRadioButton11)
- .addComponent(jRadioButton12))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel22)
- .addComponent(jRadioButton13)
- .addComponent(jRadioButton14))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel23)
- .addComponent(jRadioButton15)
- .addComponent(jRadioButton16))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jRadioButton18)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jRadioButton17)
- .addComponent(jLabel24)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel25)
- .addComponent(jRadioButton19)
- .addComponent(jRadioButton20))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel26)
- .addComponent(jRadioButton21)
- .addComponent(jRadioButton22))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel27)
- .addComponent(jRadioButton23)
- .addComponent(jRadioButton24))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel28)
- .addComponent(jRadioButton25)
- .addComponent(jRadioButton26))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel29)
- .addComponent(jRadioButton27)
- .addComponent(jRadioButton28))
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel30)
- .addComponent(jRadioButton29)
- .addComponent(jRadioButton30))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel31)
- .addComponent(jRadioButton31)
- .addComponent(jRadioButton32))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel32)
- .addComponent(jRadioButton33)
- .addComponent(jRadioButton34)))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jScrollBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addGap(117, 117, 117)
- .addComponent(jLabel1))
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel2)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(43, 43, 43)
- .addComponent(jLabel3)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addGap(0, 0, Short.MAX_VALUE))
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel2)
- .addComponent(jDateChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel3)
- .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
- .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- }// </editor-fold>
- private void jTextField4FocusGained(java.awt.event.FocusEvent evt) {
- // TODO add your handling code here:
- }
- private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
- // TODO add your handling code here:
- Connection conn = null;
- String url = "jdbc:mysql://localhost:3306/";
- String dbName = "userdb";
- String driver = "com.mysql.jdbc.Driver";
- String userName = "root";
- String password = "raja";
- try {
- Class.forName(driver).newInstance();
- conn = DriverManager.getConnection(url+dbName,userName,password);
- }
- catch (Exception e) {
- e.printStackTrace();
- }
- }
- 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(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (InstantiationException ex) {
- java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (IllegalAccessException ex) {
- java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- } catch (javax.swing.UnsupportedLookAndFeelException ex) {
- java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
- }
- //</editor-fold>
- /* Create and display the form */
- java.awt.EventQueue.invokeLater(new Runnable() {
- @Override
- public void run() {
- new donoregister().setVisible(true);
- }
- });
- }
- // Variables declaration - do not modify
- private javax.swing.ButtonGroup buttonGroup1;
- private javax.swing.ButtonGroup buttonGroup10;
- private javax.swing.ButtonGroup buttonGroup11;
- private javax.swing.ButtonGroup buttonGroup12;
- private javax.swing.ButtonGroup buttonGroup13;
- private javax.swing.ButtonGroup buttonGroup14;
- private javax.swing.ButtonGroup buttonGroup15;
- private javax.swing.ButtonGroup buttonGroup16;
- private javax.swing.ButtonGroup buttonGroup17;
- private javax.swing.ButtonGroup buttonGroup18;
- private javax.swing.ButtonGroup buttonGroup2;
- private javax.swing.ButtonGroup buttonGroup3;
- private javax.swing.ButtonGroup buttonGroup4;
- private javax.swing.ButtonGroup buttonGroup5;
- private javax.swing.ButtonGroup buttonGroup6;
- private javax.swing.ButtonGroup buttonGroup7;
- private javax.swing.ButtonGroup buttonGroup8;
- private javax.swing.ButtonGroup buttonGroup9;
- private javax.swing.JButton jButton1;
- private com.toedter.calendar.JDateChooser jDateChooser1;
- private com.toedter.calendar.JDateChooser jDateChooser2;
- 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 jLabel15;
- 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 jLabel22;
- private javax.swing.JLabel jLabel23;
- private javax.swing.JLabel jLabel24;
- private javax.swing.JLabel jLabel25;
- private javax.swing.JLabel jLabel26;
- private javax.swing.JLabel jLabel27;
- private javax.swing.JLabel jLabel28;
- private javax.swing.JLabel jLabel29;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel30;
- private javax.swing.JLabel jLabel31;
- private javax.swing.JLabel jLabel32;
- 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;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JRadioButton jRadioButton1;
- private javax.swing.JRadioButton jRadioButton10;
- private javax.swing.JRadioButton jRadioButton11;
- private javax.swing.JRadioButton jRadioButton12;
- private javax.swing.JRadioButton jRadioButton13;
- private javax.swing.JRadioButton jRadioButton14;
- private javax.swing.JRadioButton jRadioButton15;
- private javax.swing.JRadioButton jRadioButton16;
- private javax.swing.JRadioButton jRadioButton17;
- private javax.swing.JRadioButton jRadioButton18;
- private javax.swing.JRadioButton jRadioButton19;
- private javax.swing.JRadioButton jRadioButton2;
- private javax.swing.JRadioButton jRadioButton20;
- private javax.swing.JRadioButton jRadioButton21;
- private javax.swing.JRadioButton jRadioButton22;
- private javax.swing.JRadioButton jRadioButton23;
- private javax.swing.JRadioButton jRadioButton24;
- private javax.swing.JRadioButton jRadioButton25;
- private javax.swing.JRadioButton jRadioButton26;
- private javax.swing.JRadioButton jRadioButton27;
- private javax.swing.JRadioButton jRadioButton28;
- private javax.swing.JRadioButton jRadioButton29;
- private javax.swing.JRadioButton jRadioButton3;
- private javax.swing.JRadioButton jRadioButton30;
- private javax.swing.JRadioButton jRadioButton31;
- private javax.swing.JRadioButton jRadioButton32;
- private javax.swing.JRadioButton jRadioButton33;
- private javax.swing.JRadioButton jRadioButton34;
- private javax.swing.JRadioButton jRadioButton4;
- private javax.swing.JRadioButton jRadioButton5;
- private javax.swing.JRadioButton jRadioButton6;
- private javax.swing.JRadioButton jRadioButton7;
- private javax.swing.JRadioButton jRadioButton8;
- private javax.swing.JRadioButton jRadioButton9;
- private javax.swing.JScrollBar jScrollBar1;
- private javax.swing.JScrollBar jScrollBar2;
- private javax.swing.JTextField jTextField1;
- private javax.swing.JTextField jTextField10;
- private javax.swing.JTextField jTextField11;
- private javax.swing.JTextField jTextField12;
- private javax.swing.JTextField jTextField2;
- private javax.swing.JTextField jTextField3;
- private javax.swing.JTextField jTextField4;
- private javax.swing.JTextField jTextField5;
- private javax.swing.JTextField jTextField6;
- private javax.swing.JTextField jTextField7;
- private javax.swing.JTextField jTextField8;
- private javax.swing.JTextField jTextField9;
- // End of variables declaration
- }
Advertisement
Add Comment
Please, Sign In to add comment