The code below can create excel table in the netbeans environment. But the jar file is not creating the excel table. Please can any one one help me with what I did wrong.

1. main file

package vrdtable;
 
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.File;
import java.io.FileOutputStream;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.ss.usermodel.CellStyle;
 
 class VRDTable extends JFrame
            implements ActionListener{
 JLabel sexL = new JLabel("Sex");
 JLabel placeL=new JLabel("Place of Occurence");
 JLabel orderL=new JLabel("Birth Order");
 JLabel ageL=new JLabel("Age at Birth");
 JLabel meduL=new JLabel("Mother's Education");
 JLabel feduL=new JLabel("Father's Education");
 JLabel mocuL=new JLabel("Mother's Occupation");
 JLabel lgaL=new JLabel("L.G.A");
 JLabel stateL=new JLabel("State");
 JLabel monthL=new JLabel("Month");
 JLabel yearL=new JLabel("Year");
 JLabel cnt1regL=new JLabel("Registration Centre");
 JLabel cnt2regL=new JLabel("Registration Centre");
 JLabel cnt3regL=new JLabel("Registration Centre");
 JLabel cnt4regL=new JLabel("Registration Centre");
 
 
 JTextField lga=new JTextField();
 JTextField state=new JTextField();
 JTextField month=new JTextField();
 JTextField year=new JTextField();
 JTextField reg=new JTextField();
 JTextField cnt2reg=new JTextField();
 JTextField cnt3reg=new JTextField();
 JTextField cnt4reg=new JTextField();
 
 
 JCheckBox cnt1=new JCheckBox();
 JCheckBox cnt2=new JCheckBox();
 JCheckBox cnt3=new JCheckBox();
 JCheckBox cnt4=new JCheckBox();
 JCheckBox cnt5=new JCheckBox();
 
 JTextField sex=new JTextField("0");
 JTextField sex2=new JTextField("0");
 JTextField sex3=new JTextField("0");
 JTextField sex4=new JTextField("1");
 
 JTextField cnt2sex2=new JTextField("0");
 JTextField cnt2sex3=new JTextField("0");
 JTextField cnt2sex4=new JTextField("0");
 
 JTextField cnt3sex2=new JTextField("0");
 JTextField cnt3sex3=new JTextField("0");
 JTextField cnt3sex4=new JTextField("0");
 
 JTextField cnt4sex2=new JTextField("0");
 JTextField cnt4sex3=new JTextField("0");
 JTextField cnt4sex4=new JTextField("0");
 
 JTextField place=new JTextField("0");
 JTextField order=new JTextField("0");
 JTextField age=new JTextField("0");
 JTextField medu=new JTextField("0");
 JTextField fedu=new JTextField("0");
 JTextField mocu=new JTextField("0");
 
 JTextField place2=new JTextField("0");
 JTextField place3=new JTextField("0");
 JTextField place4=new JTextField("0");
 JTextField place5=new JTextField("0");
 JTextField place6=new JTextField("0");
 JTextField place7=new JTextField("0");
 
 JTextField cnt2place2=new JTextField("0");
 JTextField cnt2place3=new JTextField("0");
 JTextField cnt2place4=new JTextField("0");
 JTextField cnt2place5=new JTextField("0");
 JTextField cnt2place6=new JTextField("0");
 JTextField cnt2place7=new JTextField("0");
 
 JTextField cnt3place2=new JTextField("0");
 JTextField cnt3place3=new JTextField("0");
 JTextField cnt3place4=new JTextField("0");
 JTextField cnt3place5=new JTextField("0");
 JTextField cnt3place6=new JTextField("0");
 JTextField cnt3place7=new JTextField("0");
 
 JTextField cnt4place2=new JTextField("0");
 JTextField cnt4place3=new JTextField("0");
 JTextField cnt4place4=new JTextField("0");
 JTextField cnt4place5=new JTextField("0");
 JTextField cnt4place6=new JTextField("0");
 JTextField cnt4place7=new JTextField("0");
 
  JTextField medu2=new JTextField("0");
  JTextField medu3=new JTextField("0");
  JTextField medu4=new JTextField("0");
  JTextField medu5=new JTextField("0");
  JTextField medu6=new JTextField("0");
  JTextField medu7=new JTextField("0");
  JTextField medu8=new JTextField("0");
  JTextField medu9=new JTextField("0");
 
  JTextField cnt2medu2=new JTextField("0");
  JTextField cnt2medu3=new JTextField("0");
  JTextField cnt2medu4=new JTextField("0");
  JTextField cnt2medu5=new JTextField("0");
  JTextField cnt2medu6=new JTextField("0");
  JTextField cnt2medu7=new JTextField("0");
  JTextField cnt2medu8=new JTextField("0");
  JTextField cnt2medu9=new JTextField("0");
 
  JTextField cnt3medu2=new JTextField("0");
  JTextField cnt3medu3=new JTextField("0");
  JTextField cnt3medu4=new JTextField("0");
  JTextField cnt3medu5=new JTextField("0");
  JTextField cnt3medu6=new JTextField("0");
  JTextField cnt3medu7=new JTextField("0");
  JTextField cnt3medu8=new JTextField("0");
  JTextField cnt3medu9=new JTextField("0");
 
  JTextField cnt4medu2=new JTextField("0");
  JTextField cnt4medu3=new JTextField("0");
  JTextField cnt4medu4=new JTextField("0");
  JTextField cnt4medu5=new JTextField("0");
  JTextField cnt4medu6=new JTextField("0");
  JTextField cnt4medu7=new JTextField("0");
  JTextField cnt4medu8=new JTextField("0");
  JTextField cnt4medu9=new JTextField("0");
 
  JTextField fedu2=new JTextField("0");
  JTextField fedu3=new JTextField("0");
  JTextField fedu4=new JTextField("0");
  JTextField fedu5=new JTextField("0");
  JTextField fedu6=new JTextField("0");
  JTextField fedu7=new JTextField("0");
  JTextField fedu8=new JTextField("0");
  JTextField fedu9=new JTextField("0");
 
  JTextField cnt2fedu2=new JTextField("0");
  JTextField cnt2fedu3=new JTextField("0");
  JTextField cnt2fedu4=new JTextField("0");
  JTextField cnt2fedu5=new JTextField("0");
  JTextField cnt2fedu6=new JTextField("0");
  JTextField cnt2fedu7=new JTextField("0");
  JTextField cnt2fedu8=new JTextField("0");
  JTextField cnt2fedu9=new JTextField("0");
 
  JTextField cnt3fedu2=new JTextField("0");
  JTextField cnt3fedu3=new JTextField("0");
  JTextField cnt3fedu4=new JTextField("0");
  JTextField cnt3fedu5=new JTextField("0");
  JTextField cnt3fedu6=new JTextField("0");
  JTextField cnt3fedu7=new JTextField("0");
  JTextField cnt3fedu8=new JTextField("0");
  JTextField cnt3fedu9=new JTextField("0");
 
  JTextField cnt4fedu2=new JTextField("0");
  JTextField cnt4fedu3=new JTextField("0");
  JTextField cnt4fedu4=new JTextField("0");
  JTextField cnt4fedu5=new JTextField("0");
  JTextField cnt4fedu6=new JTextField("0");
  JTextField cnt4fedu7=new JTextField("0");
  JTextField cnt4fedu8=new JTextField("0");
  JTextField cnt4fedu9=new JTextField("0");
 
  JTextField order1=new JTextField("0");
  JTextField order2=new JTextField("0");
  JTextField order3=new JTextField("0");
  JTextField order4=new JTextField("0");
  JTextField order5=new JTextField("0");
  JTextField order6=new JTextField("0");
  JTextField order7=new JTextField("0");
  JTextField order8=new JTextField("0");
  JTextField order9=new JTextField("0");
  JTextField order10=new JTextField("0");
  JTextField order11=new JTextField("0");
 
  JTextField order21=new JTextField("0");
  JTextField order31=new JTextField("0");
  JTextField order41=new JTextField("0");
  JTextField order51=new JTextField("0");
  JTextField order61=new JTextField("0");
  JTextField order71=new JTextField("0");
  JTextField order81=new JTextField("0");
  JTextField order91=new JTextField("0");
  JTextField order101=new JTextField("0");
  JTextField order111=new JTextField("0");
  JTextField order121=new JTextField("0");
 
  JTextField order22=new JTextField("0");
  JTextField order32=new JTextField("0");
  JTextField order42=new JTextField("0");
  JTextField order52=new JTextField("0");
  JTextField order62=new JTextField("0");
  JTextField order72=new JTextField("0");
  JTextField order82=new JTextField("0");
  JTextField order92=new JTextField("0");
  JTextField order102=new JTextField("0");
  JTextField order112=new JTextField("0");
  JTextField order122=new JTextField("0");
 
  JTextField order23=new JTextField("0");
  JTextField order33=new JTextField("0");
  JTextField order43=new JTextField("0");
  JTextField order53=new JTextField("0");
  JTextField order63=new JTextField("0");
  JTextField order73=new JTextField("0");
  JTextField order83=new JTextField("0");
  JTextField order93=new JTextField("0");
  JTextField order103=new JTextField("0");
  JTextField order113=new JTextField("0");
  JTextField order123=new JTextField("0");
 
  JTextField order24=new JTextField("0");
  JTextField order34=new JTextField("0");
  JTextField order44=new JTextField("0");
  JTextField order54=new JTextField("0");
  JTextField order64=new JTextField("0");
  JTextField order74=new JTextField("0");
  JTextField order84=new JTextField("0");
  JTextField order94=new JTextField("0");
  JTextField order104=new JTextField("0");
  JTextField order114=new JTextField("0");
  JTextField order124=new JTextField("0");
 
  JTextField order25=new JTextField("0");
  JTextField order35=new JTextField("0");
  JTextField order45=new JTextField("0");
  JTextField order55=new JTextField("0");
  JTextField order65=new JTextField("0");
  JTextField order75=new JTextField("0");
  JTextField order85=new JTextField("0");
  JTextField order95=new JTextField("0");
  JTextField order105=new JTextField("0");
  JTextField order115=new JTextField("0");
  JTextField order125=new JTextField("0");
 
  JTextField order26=new JTextField("0");
  JTextField order36=new JTextField("0");
  JTextField order46=new JTextField("0");
  JTextField order56=new JTextField("0");
  JTextField order66=new JTextField("0");
  JTextField order76=new JTextField("0");
  JTextField order86=new JTextField("0");
  JTextField order96=new JTextField("0");
  JTextField order106=new JTextField("0");
  JTextField order116=new JTextField("0");
  JTextField order126=new JTextField("0");
 
  JTextField order27=new JTextField("0");
  JTextField order37=new JTextField("0");
  JTextField order47=new JTextField("0");
  JTextField order57=new JTextField("0");
  JTextField order67=new JTextField("0");
  JTextField order77=new JTextField("0");
  JTextField order87=new JTextField("0");
  JTextField order97=new JTextField("0");
  JTextField order107=new JTextField("0");
  JTextField order117=new JTextField("0");
  JTextField order127=new JTextField("0");
 
  JTextField order28=new JTextField("0");
  JTextField order38=new JTextField("0");
  JTextField order48=new JTextField("0");
  JTextField order58=new JTextField("0");
  JTextField order68=new JTextField("0");
  JTextField order78=new JTextField("0");
  JTextField order88=new JTextField("0");
  JTextField order98=new JTextField("0");
  JTextField order108=new JTextField("0");
  JTextField order118=new JTextField("0");
  JTextField order128=new JTextField("0");
 
  JTextField order29=new JTextField("0");
  JTextField order39=new JTextField("0");
  JTextField order49=new JTextField("0");
  JTextField order59=new JTextField("0");
  JTextField order69=new JTextField("0");
  JTextField order79=new JTextField("0");
  JTextField order89=new JTextField("0");
  JTextField order99=new JTextField("0");
  JTextField order109=new JTextField("0");
  JTextField order119=new JTextField("0");
  JTextField order129=new JTextField("0");
 
  JTextField order210=new JTextField("0");
  JTextField order310=new JTextField("0");
  JTextField order410=new JTextField("0");
  JTextField order510=new JTextField("0");
  JTextField order610=new JTextField("0");
  JTextField order710=new JTextField("0");
  JTextField order810=new JTextField("0");
  JTextField order910=new JTextField("0");
  JTextField order1010=new JTextField("0");
  JTextField order1110=new JTextField("0");
  JTextField order1210=new JTextField("0");
 
  JTextField orderc2210=new JTextField("0");
  JTextField orderc2310=new JTextField("0");
  JTextField orderc2410=new JTextField("0");
  JTextField orderc2510=new JTextField("0");
  JTextField orderc2610=new JTextField("0");
  JTextField orderc2710=new JTextField("0");
  JTextField orderc2810=new JTextField("0");
  JTextField orderc2910=new JTextField("0");
  JTextField orderc21010=new JTextField("0");
  JTextField orderc21110=new JTextField("0");
  JTextField orderc21210=new JTextField("0");
 
  JTextField orderc3210=new JTextField("0");
  JTextField orderc3310=new JTextField("0");
  JTextField orderc3410=new JTextField("0");
  JTextField orderc3510=new JTextField("0");
  JTextField orderc3610=new JTextField("0");
  JTextField orderc3710=new JTextField("0");
  JTextField orderc3810=new JTextField("0");
  JTextField orderc3910=new JTextField("0");
  JTextField orderc31010=new JTextField("0");
  JTextField orderc31110=new JTextField("0");
  JTextField orderc31210=new JTextField("0");
 
  JTextField orderc4210=new JTextField("0");
  JTextField orderc4310=new JTextField("0");
  JTextField orderc4410=new JTextField("0");
  JTextField orderc4510=new JTextField("0");
  JTextField orderc4610=new JTextField("0");
  JTextField orderc4710=new JTextField("0");
  JTextField orderc4810=new JTextField("0");
  JTextField orderc4910=new JTextField("0");
  JTextField orderc41010=new JTextField("0");
  JTextField orderc41110=new JTextField("0");
  JTextField orderc41210=new JTextField("0");
 
  JButton cntL1=new JButton("Centre1");
  JButton cntL2=new JButton("Centre2");
  JButton cntL3=new JButton("Centre3");
  JButton cntL4=new JButton("Centre4");
  JButton cntL5=new JButton("Centre5");
  JButton gen=new JButton("GENERATE TABLE");
  JButton proc=new JButton("PROCESS");
  public String getPbtn(){
      return proc.getActionCommand();
  }
  JButton save=new JButton("SAVE");
  JButton cancel=new JButton("CANCEL");
 
 JPanel panel=new JPanel();
    public static void main(String[] args) {
        VRDTable bt = new VRDTable();
        File file=new File("C:\\Users\\idris\\Desktop\\VRDFolder");
        try{
            if(file.exists()==false){
                file.mkdir();
            JOptionPane.showMessageDialog(null, "Folder Created");
        }
        else{
             JOptionPane.showMessageDialog(null,"Folder already exist");
                }
        }catch(Exception e){
            JOptionPane.showMessageDialog(null,e);
        }
    }
    public VRDTable()
    {
 
      super("LIVE BIRTH TABLE GENERATOR");
       Color cl=Color.PINK;
       panel.setBackground(cl);
       setSize(600,700);
       setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       panel.setLayout(null);
 
       lgaL.setBounds(10,10,100,20);
       monthL.setBounds(170,10,80,20);
       stateL.setBounds(10,50,100,20);
       yearL.setBounds(170,50,100,20);
       lga.setBounds(50,10,100,25);
       month.setBounds(220,10,100,25);
       cntL1.setBounds(400,10,100,25);
       cnt1.setBounds(500,10,20,20);
       cntL2.setBounds(400,30,100,20);
       cnt2.setBounds(500,30,20,20);
       cntL3.setBounds(400,50,100,20);
       cnt3.setBounds(500,50,20,20);
       cntL4.setBounds(400,70,100,20);
       cnt4.setBounds(500,70,20,20);
       cntL5.setBounds(400,90,100,20);
       cnt5.setBounds(500,90,20,20);
       state.setBounds(50,50,100,25);
       year.setBounds(220,50,100,25);
       cnt1regL.setBounds(10,90,170,20);
       reg.setBounds(150,90,200,25);
       cnt2reg.setBounds(150,90,200,25);
       cnt3reg.setBounds(150,90,200,25);
       cnt4reg.setBounds(150,90,200,25);
 
       sexL.setBounds(10,120,50,30);
       placeL.setBounds(10,160,150,30);
       orderL.setBounds(10,200,100,30);
       ageL.setBounds(10,240,150,30);
       meduL.setBounds(10,280,150,30);
       feduL.setBounds(10,320,150,30);
       mocuL.setBounds(10,360,150,30);
 
       sex.setBounds(150,120,30,30);
       place.setBounds(150,160,30,30);
       order.setBounds(150,200,30,30);
       age.setBounds(150,240,30,30);
       medu.setBounds(150,280,30,30);
       fedu.setBounds(150,320,30,30);
       mocu.setBounds(150,360,30,30);
 
       sex2.setBounds(190,120,30,30);
       sex3.setBounds(230,120,30,30);
       sex4.setBounds(270,120,30,30);
 
       JLabel sexLab2=new JLabel("Centre 2 Sex");
       sexLab2.setBounds(1050,10,150,30);
       cnt2sex2.setBounds(1050,30,30,30);
       cnt2sex3.setBounds(1090,30,30,30);
       cnt2sex4.setBounds(1130,30,30,30);
 
       JLabel sexLab3=new JLabel("Centre 3 sex");
       sexLab3.setBounds(1050,170,150,30);
       cnt3sex2.setBounds(1050,190,30,30);
       cnt3sex3.setBounds(1090,190,30,30);
       cnt3sex4.setBounds(1130,190,30,30);
 
       JLabel sexLab4=new JLabel("Centre 4 sex");
       sexLab4.setBounds(1050,330,150,30);
       cnt4sex2.setBounds(1050,350,30,30);
       cnt4sex3.setBounds(1090,350,30,30);
       cnt4sex4.setBounds(1130,350,30,30);
 
       place2.setBounds(190,160,30,30);
       place3.setBounds(230,160,30,30);
       place4.setBounds(270,160,30,30);
       place5.setBounds(310,160,30,30);
       place6.setBounds(350,160,30,30);
 
       JLabel placeLab2=new JLabel("Centre 2 Place");
       placeLab2.setBounds(1050,50,150,30);
       cnt2place2.setBounds(1050,70,30,30);
       cnt2place3.setBounds(1090,70,30,30);
       cnt2place4.setBounds(1130,70,30,30);
       cnt2place5.setBounds(1170,70,30,30);
       cnt2place6.setBounds(1210,70,30,30);
 
       JLabel placeLab3=new JLabel("Centre 3 Place");
       placeLab3.setBounds(1050,210,150,30);
       cnt3place2.setBounds(1050,230,30,30);
       cnt3place3.setBounds(1090,230,30,30);
       cnt3place4.setBounds(1130,230,30,30);
       cnt3place5.setBounds(1170,230,30,30);
       cnt3place6.setBounds(1210,230,30,30);
 
       JLabel placeLab4=new JLabel("Centre 4 Place");
       placeLab4.setBounds(1050,370,150,30);
       cnt4place2.setBounds(1050,390,30,30);
       cnt4place3.setBounds(1090,390,30,30);
       cnt4place4.setBounds(1130,390,30,30);
       cnt4place5.setBounds(1170,390,30,30);
       cnt4place6.setBounds(1210,390,30,30);
 
       medu2.setBounds(190,280,30,30);
       medu3.setBounds(230,280,30,30);
       medu4.setBounds(270,280,30,30);
       medu5.setBounds(310,280,30,30);
       medu6.setBounds(350,280,30,30);
       medu7.setBounds(390,280,30,30);
       medu8.setBounds(430,280,30,30);
       medu9.setBounds(470,280,30,30);
 
       JLabel meduLab2=new JLabel("Centre 2 Mother Education");
       meduLab2.setBounds(1050,90,150,30);
       cnt2medu2.setBounds(1050,110,30,30);
       cnt2medu3.setBounds(1090,110,30,30);
       cnt2medu4.setBounds(1130,110,30,30);
       cnt2medu5.setBounds(1170,110,30,30);
       cnt2medu6.setBounds(1210,110,30,30);
       cnt2medu7.setBounds(1250,110,30,30);
       cnt2medu8.setBounds(1290,110,30,30);
       cnt2medu9.setBounds(1330,110,30,30);
 
       JLabel meduLab3=new JLabel("Centre 3 Mother Education");
       meduLab3.setBounds(1050,250,150,30);
       cnt3medu2.setBounds(1050,270,30,30);
       cnt3medu3.setBounds(1090,270,30,30);
       cnt3medu4.setBounds(1130,270,30,30);
       cnt3medu5.setBounds(1170,270,30,30);
       cnt3medu6.setBounds(1210,270,30,30);
       cnt3medu7.setBounds(1250,270,30,30);
       cnt3medu8.setBounds(1290,270,30,30);
       cnt3medu9.setBounds(1330,270,30,30);
 
       JLabel meduLab4=new JLabel("Centre 4 Mother Education");
       meduLab4.setBounds(1050,410,150,30);
       cnt4medu2.setBounds(1050,430,30,30);
       cnt4medu3.setBounds(1090,430,30,30);
       cnt4medu4.setBounds(1130,430,30,30);
       cnt4medu5.setBounds(1170,430,30,30);
       cnt4medu6.setBounds(1210,430,30,30);
       cnt4medu7.setBounds(1250,430,30,30);
       cnt4medu8.setBounds(1290,430,30,30);
       cnt4medu9.setBounds(1330,430,30,30);
 
       fedu2.setBounds(190,320,30,30);
       fedu3.setBounds(230,320,30,30);
       fedu4.setBounds(270,320,30,30);
       fedu5.setBounds(310,320,30,30);
       fedu6.setBounds(350,320,30,30);
       fedu7.setBounds(390,320,30,30);
       fedu8.setBounds(430,320,30,30);
       fedu9.setBounds(470,320,30,30);
 
       JLabel feduLab2=new JLabel("Centre 2 Father Education");
       feduLab2.setBounds(1050,130,150,30);
       cnt2fedu2.setBounds(1050,150,30,30);
       cnt2fedu3.setBounds(1090,150,30,30);
       cnt2fedu4.setBounds(1130,150,30,30);
       cnt2fedu5.setBounds(1170,150,30,30);
       cnt2fedu6.setBounds(1210,150,30,30);
       cnt2fedu7.setBounds(1250,150,30,30);
       cnt2fedu8.setBounds(1290,150,30,30);
       cnt2fedu9.setBounds(1330,150,30,30);
 
       JLabel feduLab3=new JLabel("Centre 3 Father Education");
       feduLab3.setBounds(1050,290,150,30);
       cnt3fedu2.setBounds(1050,310,30,30);
       cnt3fedu3.setBounds(1090,310,30,30);
       cnt3fedu4.setBounds(1130,310,30,30);
       cnt3fedu5.setBounds(1170,310,30,30);
       cnt3fedu6.setBounds(1210,310,30,30);
       cnt3fedu7.setBounds(1250,310,30,30);
       cnt3fedu8.setBounds(1290,310,30,30);
       cnt3fedu9.setBounds(1330,310,30,30);
 
       JLabel feduLab4=new JLabel("Centre 4 Father Education");
       feduLab4.setBounds(1050,450,150,30);
       cnt4fedu2.setBounds(1050,470,30,30);
       cnt4fedu3.setBounds(1090,470,30,30);
       cnt4fedu4.setBounds(1130,470,30,30);
       cnt4fedu5.setBounds(1170,470,30,30);
       cnt4fedu6.setBounds(1210,470,30,30);
       cnt4fedu7.setBounds(1250,470,30,30);
       cnt4fedu8.setBounds(1290,470,30,30);
       cnt4fedu9.setBounds(1330,470,30,30);
 
       order1.setBounds(600,10,30,30);
       order2.setBounds(640,10,30,30);
       order3.setBounds(680,10,30,30);
       order4.setBounds(720,10,30,30);
       order5.setBounds(760,10,30,30);
       order6.setBounds(800,10,30,30);
       order7.setBounds(840,10,30,30);
       order8.setBounds(880,10,30,30);
       order9.setBounds(920,10,30,30);
       order10.setBounds(960,10,30,30);
       order11.setBounds(1000,10,30,30);
 
       order21.setBounds(600,50,30,30);
       order31.setBounds(640,50,30,30);
       order41.setBounds(680,50,30,30);
       order51.setBounds(720,50,30,30);
       order61.setBounds(760,50,30,30);
       order71.setBounds(800,50,30,30);
       order81.setBounds(840,50,30,30);
       order91.setBounds(880,50,30,30);
       order101.setBounds(920,50,30,30);
       order111.setBounds(960,50,30,30);
       order121.setBounds(1000,50,30,30);
 
       order22.setBounds(600,90,30,30);
       order32.setBounds(640,90,30,30);
       order42.setBounds(680,90,30,30);
       order52.setBounds(720,90,30,30);
       order62.setBounds(760,90,30,30);
       order72.setBounds(800,90,30,30);
       order82.setBounds(840,90,30,30);
       order92.setBounds(880,90,30,30);
       order102.setBounds(920,90,30,30);
       order112.setBounds(960,90,30,30);
       order122.setBounds(1000,90,30,30);
 
       order23.setBounds(600,130,30,30);
       order33.setBounds(640,130,30,30);
       order43.setBounds(680,130,30,30);
       order53.setBounds(720,130,30,30);
       order63.setBounds(760,130,30,30);
       order73.setBounds(800,130,30,30);
       order83.setBounds(840,130,30,30);
       order93.setBounds(880,130,30,30);
       order103.setBounds(920,130,30,30);
       order113.setBounds(960,130,30,30);
       order123.setBounds(1000,130,30,30);
 
       order24.setBounds(600,170,30,30);
       order34.setBounds(640,170,30,30);
       order44.setBounds(680,170,30,30);
       order54.setBounds(720,170,30,30);
       order64.setBounds(760,170,30,30);
       order74.setBounds(800,170,30,30);
       order84.setBounds(840,170,30,30);
       order94.setBounds(880,170,30,30);
       order104.setBounds(920,170,30,30);
       order114.setBounds(960,170,30,30);
       order124.setBounds(1000,170,30,30);
 
       order25.setBounds(600,210,30,30);
       order35.setBounds(640,210,30,30);
       order45.setBounds(680,210,30,30);
       order55.setBounds(720,210,30,30);
       order65.setBounds(760,210,30,30);
       order75.setBounds(800,210,30,30);
       order85.setBounds(840,210,30,30);
       order95.setBounds(880,210,30,30);
       order105.setBounds(920,210,30,30);
       order115.setBounds(960,210,30,30);
       order125.setBounds(1000,210,30,30);
 
       order26.setBounds(600,250,30,30);
       order36.setBounds(640,250,30,30);
       order46.setBounds(680,250,30,30);
       order56.setBounds(720,250,30,30);
       order66.setBounds(760,250,30,30);
       order76.setBounds(800,250,30,30);
       order86.setBounds(840,250,30,30);
       order96.setBounds(880,250,30,30);
       order106.setBounds(920,250,30,30);
       order116.setBounds(960,250,30,30);
       order126.setBounds(1000,250,30,30);
 
       order27.setBounds(600,290,30,30);
       order37.setBounds(640,290,30,30);
       order47.setBounds(680,290,30,30);
       order57.setBounds(720,290,30,30);
       order67.setBounds(760,290,30,30);
       order77.setBounds(800,290,30,30);
       order87.setBounds(840,290,30,30);
       order97.setBounds(880,290,30,30);
       order107.setBounds(920,290,30,30);
       order117.setBounds(960,290,30,30);
       order127.setBounds(1000,290,30,30);
 
       order28.setBounds(600,330,30,30);
       order38.setBounds(640,330,30,30);
       order48.setBounds(680,330,30,30);
       order58.setBounds(720,330,30,30);
       order68.setBounds(760,330,30,30);
       order78.setBounds(800,330,30,30);
       order88.setBounds(840,330,30,30);
       order98.setBounds(880,330,30,30);
       order108.setBounds(920,330,30,30);
       order118.setBounds(960,330,30,30);
       order128.setBounds(1000,330,30,30);
 
       order29.setBounds(600,370,30,30);
       order39.setBounds(640,370,30,30);
       order49.setBounds(680,370,30,30);
       order59.setBounds(720,370,30,30);
       order69.setBounds(760,370,30,30);
       order79.setBounds(800,370,30,30);
       order89.setBounds(840,370,30,30);
       order99.setBounds(880,370,30,30);
       order109.setBounds(920,370,30,30);
       order119.setBounds(960,370,30,30);
       order129.setBounds(1000,370,30,30);
 
       order210.setBounds(600,410,30,30);
       order310.setBounds(640,410,30,30);
       order410.setBounds(680,410,30,30);
       order510.setBounds(720,410,30,30);
       order610.setBounds(760,410,30,30);
       order710.setBounds(800,410,30,30);
       order810.setBounds(840,410,30,30);
       order910.setBounds(880,410,30,30);
       order1010.setBounds(920,410,30,30);
       order1110.setBounds(960,410,30,30);
       order1210.setBounds(1000,410,30,30);
 
       orderc2210.setBounds(600,450,30,30);
       orderc2310.setBounds(640,450,30,30);
       orderc2410.setBounds(680,450,30,30);
       orderc2510.setBounds(720,450,30,30);
       orderc2610.setBounds(760,450,30,30);
       orderc2710.setBounds(800,450,30,30);
       orderc2810.setBounds(840,450,30,30);
       orderc2910.setBounds(880,450,30,30);
       orderc21010.setBounds(920,450,30,30);
       orderc21110.setBounds(960,450,30,30);
       orderc21210.setBounds(1000,450,30,30);
 
       orderc3210.setBounds(600,490,30,30);
       orderc3310.setBounds(640,490,30,30);
       orderc3410.setBounds(680,490,30,30);
       orderc3510.setBounds(720,490,30,30);
       orderc3610.setBounds(760,490,30,30);
       orderc3710.setBounds(800,490,30,30);
       orderc3810.setBounds(840,490,30,30);
       orderc3910.setBounds(880,490,30,30);
       orderc31010.setBounds(920,490,30,30);
       orderc31110.setBounds(960,490,30,30);
       orderc31210.setBounds(1000,490,30,30);
       proc.setBounds(30,500,100,30);
       gen.setBounds(140,500,140,30);
       save.setBounds(290,500,100,30);
       cancel.setBounds(400,500,100,30);
 
       panel.add(lgaL);
       panel.add(monthL);
       panel.add(stateL);
       panel.add(yearL);
       panel.add(cnt1regL);
       panel.add(reg);
       panel.add(cnt2reg);
       panel.add(cnt3reg);
       panel.add(cnt4reg);
 
       panel.add(lga);
       panel.add(month);
       panel.add(state);
       panel.add(year);
 
       panel.add(sexL);
       panel.add(placeL);
       panel.add(orderL);
       panel.add(ageL);
       panel.add(meduL);
       panel.add(feduL);
       panel.add(mocuL);
 
       panel.add(sex);
       panel.add(place);
       panel.add(order);
       panel.add(age);
       panel.add(medu);
       panel.add(fedu);
       panel.add(mocu);
 
       panel.add(sex2);
       panel.add(sex3);
       panel.add(sex4);
 
       panel.add(sexLab2);
       panel.add(cnt2sex2);
       panel.add(cnt2sex3);
       panel.add(cnt2sex4);
 
       panel.add(sexLab3);
       panel.add(cnt3sex2);
       panel.add(cnt3sex3);
       panel.add(cnt3sex4);
 
       panel.add(sexLab4);
       panel.add(cnt4sex2);
       panel.add(cnt4sex3);
       panel.add(cnt4sex4);
 
       panel.add(place2);
       panel.add(place3);
       panel.add(place4);
       panel.add(place5);
       panel.add(place6);
 
       panel.add(placeLab2);
       panel.add(cnt2place2);
       panel.add(cnt2place3);
       panel.add(cnt2place4);
       panel.add(cnt2place5);
       panel.add(cnt2place6);
 
       panel.add(placeLab3);
       panel.add(cnt3place2);
       panel.add(cnt3place3);
       panel.add(cnt3place4);
       panel.add(cnt3place5);
       panel.add(cnt3place6);
 
       panel.add(placeLab4);
       panel.add(cnt4place2);
       panel.add(cnt4place3);
       panel.add(cnt4place4);
       panel.add(cnt4place5);
       panel.add(cnt4place6);
 
       panel.add(medu2);
       panel.add(medu3);
       panel.add(medu4);
       panel.add(medu5);
       panel.add(medu6);
       panel.add(medu7);
       panel.add(medu8);
       panel.add(medu9);
 
       panel.add(meduLab2);
       panel.add(cnt2medu2);
       panel.add(cnt2medu3);
       panel.add(cnt2medu4);
       panel.add(cnt2medu5);
       panel.add(cnt2medu6);
       panel.add(cnt2medu7);
       panel.add(cnt2medu8);
       panel.add(cnt2medu9);
 
       panel.add(meduLab3);
       panel.add(cnt3medu2);
       panel.add(cnt3medu3);
       panel.add(cnt3medu4);
       panel.add(cnt3medu5);
       panel.add(cnt3medu6);
       panel.add(cnt3medu7);
       panel.add(cnt3medu8);
       panel.add(cnt3medu9);
 
       panel.add(meduLab4);
       panel.add(cnt4medu2);
       panel.add(cnt4medu3);
       panel.add(cnt4medu4);
       panel.add(cnt4medu5);
       panel.add(cnt4medu6);
       panel.add(cnt4medu7);
       panel.add(cnt4medu8);
       panel.add(cnt4medu9);
 
       panel.add(fedu2);
       panel.add(fedu3);
       panel.add(fedu4);
       panel.add(fedu5);
       panel.add(fedu6);
       panel.add(fedu7);
       panel.add(fedu8);
       panel.add(fedu9);
 
       panel.add(feduLab2);
       panel.add(cnt2fedu2);
       panel.add(cnt2fedu3);
       panel.add(cnt2fedu4);
       panel.add(cnt2fedu5);
       panel.add(cnt2fedu6);
       panel.add(cnt2fedu7);
       panel.add(cnt2fedu8);
       panel.add(cnt2fedu9);
 
       panel.add(feduLab3);
       panel.add(cnt3fedu2);
       panel.add(cnt3fedu3);
       panel.add(cnt3fedu4);
       panel.add(cnt3fedu5);
       panel.add(cnt3fedu6);
       panel.add(cnt3fedu7);
       panel.add(cnt3fedu8);
       panel.add(cnt3fedu9);
 
       panel.add(feduLab4);
       panel.add(cnt4fedu2);
       panel.add(cnt4fedu3);
       panel.add(cnt4fedu4);
       panel.add(cnt4fedu5);
       panel.add(cnt4fedu6);
       panel.add(cnt4fedu7);
       panel.add(cnt4fedu8);
       panel.add(cnt4fedu9);
 
       panel.add(order1);
       panel.add(order2);
       panel.add(order3);
       panel.add(order4);
       panel.add(order5);
       panel.add(order6);
       panel.add(order7);
       panel.add(order8);
       panel.add(order9);
       panel.add(order10);
       panel.add(order11);
 
       panel.add(order21);
       panel.add(order31);
       panel.add(order41);
       panel.add(order51);
       panel.add(order61);
       panel.add(order71);
       panel.add(order81);
       panel.add(order91);
       panel.add(order101);
       panel.add(order111);
       panel.add(order121);
 
       panel.add(order22);
       panel.add(order32);
       panel.add(order42);
       panel.add(order52);
       panel.add(order62);
       panel.add(order72);
       panel.add(order82);
       panel.add(order92);
       panel.add(order102);
       panel.add(order112);
       panel.add(order122);
 
       panel.add(order23);
       panel.add(order33);
       panel.add(order43);
       panel.add(order53);
       panel.add(order63);
       panel.add(order73);
       panel.add(order83);
       panel.add(order93);
       panel.add(order103);
       panel.add(order113);
       panel.add(order123);
 
       panel.add(order24);
       panel.add(order34);
       panel.add(order44);
       panel.add(order54);
       panel.add(order64);
       panel.add(order74);
       panel.add(order84);
       panel.add(order94);
       panel.add(order104);
       panel.add(order114);
       panel.add(order124);
 
       panel.add(order25);
       panel.add(order35);
       panel.add(order45);
       panel.add(order55);
       panel.add(order65);
       panel.add(order75);
       panel.add(order85);
       panel.add(order95);
       panel.add(order105);
       panel.add(order115);
       panel.add(order125);
 
       panel.add(order26);
       panel.add(order36);
       panel.add(order46);
       panel.add(order56);
       panel.add(order66);
       panel.add(order76);
       panel.add(order86);
       panel.add(order96);
       panel.add(order106);
       panel.add(order116);
       panel.add(order126);
 
       panel.add(order27);
       panel.add(order37);
       panel.add(order47);
       panel.add(order57);
       panel.add(order67);
       panel.add(order77);
       panel.add(order87);
       panel.add(order97);
       panel.add(order107);
       panel.add(order117);
       panel.add(order127);
 
       panel.add(order28);
       panel.add(order38);
       panel.add(order48);
       panel.add(order58);
       panel.add(order68);
       panel.add(order78);
       panel.add(order88);
       panel.add(order98);
       panel.add(order108);
       panel.add(order118);
       panel.add(order128);
 
       panel.add(order29);
       panel.add(order39);
       panel.add(order49);
       panel.add(order59);
       panel.add(order69);
       panel.add(order79);
       panel.add(order89);
       panel.add(order99);
       panel.add(order109);
       panel.add(order119);
       panel.add(order129);
 
       panel.add(order210);
       panel.add(order310);
       panel.add(order410);
       panel.add(order510);
       panel.add(order610);
       panel.add(order710);
       panel.add(order810);
       panel.add(order910);
       panel.add(order1010);
       panel.add(order1110);
       panel.add(order1210);
 
       panel.add(orderc2210);
       panel.add(orderc2310);
       panel.add(orderc2410);
       panel.add(orderc2510);
       panel.add(orderc2610);
       panel.add(orderc2710);
       panel.add(orderc2810);
       panel.add(orderc2910);
       panel.add(orderc21010);
       panel.add(orderc21110);
       panel.add(orderc21210);
 
       panel.add(orderc3210);
       panel.add(orderc3310);
       panel.add(orderc3410);
       panel.add(orderc3510);
       panel.add(orderc3610);
       panel.add(orderc3710);
       panel.add(orderc3810);
       panel.add(orderc3910);
       panel.add(orderc31010);
       panel.add(orderc31110);
       panel.add(orderc31210);
 
 
       panel.add(cntL1);
       panel.add(cnt1);
       panel.add(cntL2);
       panel.add(cnt2);
       panel.add(cntL3);
       panel.add(cnt3);
       panel.add(cntL4);
       panel.add(cnt4);
       panel.add(cntL5);
       panel.add(cnt5);
 
       panel.add(proc);
       panel.add(gen);
       panel.add(save);
       panel.add(cancel);
       getContentPane().add(panel);
       cntL1.addActionListener(this);
       cntL2.addActionListener(this);
       cntL3.addActionListener(this);
       cntL4.addActionListener(this);
       cntL5.addActionListener(this);
       setVisible(true);
       setResizable(true);
 
       proc.addActionListener(new ActionListener(){
           public void actionPerformed(ActionEvent e){
               if(cnt1.isSelected()){
               try{
               //Processing sex
              String sx=sex.getText();
              String sx2=sex2.getText();
              String sx3=sex3.getText();
              String sx4=sex4.getText();
 
              int sxd=Integer.parseInt(sx);
              int sxd2=Integer.parseInt(sx2);
              int sxd3=Integer.parseInt(sx3);
              int sxd4=Integer.parseInt(sx3);
              //Processing place of birth
              String plac=place.getText();
              String plac2=place2.getText();
              String plac3=place3.getText();
              String plac4=place4.getText();
              String plac5=place5.getText();
              String plac6=place6.getText();
 
              int pla=Integer.parseInt(plac);
              int pla2=Integer.parseInt(plac2);
              int pla3=Integer.parseInt(plac3);
              int pla4=Integer.parseInt(plac4);
              int pla5=Integer.parseInt(plac5);
              int pla6=Integer.parseInt(plac6);
              //Processing Birth order by age of Mother
              String ages=age.getText();
              int agd=Integer.parseInt(ages);
 
              String ord=order.getText();
              String ord1=order1.getText();
              String ord2=order2.getText();
              String ord3=order3.getText();
              String ord4=order4.getText();
              String ord5=order5.getText();
              String ord6=order6.getText();
              String ord7=order7.getText();
              String ord8=order8.getText();
              String ord9=order9.getText();
              String ord10=order10.getText();
              String ord11=order11.getText();
              int od=Integer.parseInt(ord);
              int od1=Integer.parseInt(ord1);
              int od2=Integer.parseInt(ord2);
              int od3=Integer.parseInt(ord3);
              int od4=Integer.parseInt(ord4);
              int od5=Integer.parseInt(ord5);
              int od6=Integer.parseInt(ord6);
              int od7=Integer.parseInt(ord7);
              int od8=Integer.parseInt(ord8);
              int od9=Integer.parseInt(ord9);
              int od10=Integer.parseInt(ord10);
              int od11=Integer.parseInt(ord11);
 
              String ord21=order21.getText();
              String ord31=order31.getText();
              String ord41=order41.getText();
              String ord51=order51.getText();
              String ord61=order61.getText();
              String ord71=order71.getText();
              String ord81=order81.getText();
              String ord91=order91.getText();
              String ord101=order101.getText();
              String ord111=order111.getText();
              String ord121=order121.getText();
 
              int od21=Integer.parseInt(ord21);
              int od31=Integer.parseInt(ord31);
              int od41=Integer.parseInt(ord41);
              int od51=Integer.parseInt(ord51);
              int od61=Integer.parseInt(ord61);
              int od71=Integer.parseInt(ord71);
              int od81=Integer.parseInt(ord81);
              int od91=Integer.parseInt(ord91);
              int od101=Integer.parseInt(ord101);
              int od111=Integer.parseInt(ord111);
              int od121=Integer.parseInt(ord121);
 
              String ord22=order22.getText();
              String ord32=order32.getText();
              String ord42=order42.getText();
              String ord52=order52.getText();
              String ord62=order62.getText();
              String ord72=order72.getText();
              String ord82=order82.getText();
              String ord92=order92.getText();
              String ord102=order102.getText();
              String ord112=order112.getText();
              String ord122=order122.getText();
 
              int od22=Integer.parseInt(ord22);
              int od32=Integer.parseInt(ord32);
              int od42=Integer.parseInt(ord42);
              int od52=Integer.parseInt(ord52);
              int od62=Integer.parseInt(ord62);
              int od72=Integer.parseInt(ord72);
              int od82=Integer.parseInt(ord82);
              int od92=Integer.parseInt(ord92);
              int od102=Integer.parseInt(ord102);
              int od112=Integer.parseInt(ord112);
              int od122=Integer.parseInt(ord122);
 
              String ord23=order23.getText();
              String ord33=order33.getText();
              String ord43=order43.getText();
              String ord53=order53.getText();
              String ord63=order63.getText();
              String ord73=order73.getText();
              String ord83=order83.getText();
              String ord93=order93.getText();
              String ord103=order103.getText();
              String ord113=order113.getText();
              String ord123=order123.getText();
 
              int od23=Integer.parseInt(ord23);
              int od33=Integer.parseInt(ord33);
              int od43=Integer.parseInt(ord43);
              int od53=Integer.parseInt(ord53);
              int od63=Integer.parseInt(ord63);
              int od73=Integer.parseInt(ord73);
              int od83=Integer.parseInt(ord83);
              int od93=Integer.parseInt(ord93);
              int od103=Integer.parseInt(ord103);
              int od113=Integer.parseInt(ord113);
              int od123=Integer.parseInt(ord123);
 
              String ord24=order24.getText();
              String ord34=order34.getText();
              String ord44=order44.getText();
              String ord54=order54.getText();
              String ord64=order64.getText();
              String ord74=order74.getText();
              String ord84=order84.getText();
              String ord94=order94.getText();
              String ord104=order104.getText();
              String ord114=order114.getText();
              String ord124=order124.getText();
 
              int od24=Integer.parseInt(ord24);
              int od34=Integer.parseInt(ord34);
              int od44=Integer.parseInt(ord44);
              int od54=Integer.parseInt(ord54);
              int od64=Integer.parseInt(ord64);
              int od74=Integer.parseInt(ord74);
              int od84=Integer.parseInt(ord84);
              int od94=Integer.parseInt(ord94);
              int od104=Integer.parseInt(ord104);
              int od114=Integer.parseInt(ord114);
              int od124=Integer.parseInt(ord124);
 
              String ord25=order25.getText();
              String ord35=order35.getText();
              String ord45=order45.getText();
              String ord55=order55.getText();
              String ord65=order65.getText();
              String ord75=order75.getText();
              String ord85=order85.getText();
              String ord95=order95.getText();
              String ord105=order105.getText();
              String ord115=order115.getText();
              String ord125=order125.getText();
 
              int od25=Integer.parseInt(ord25);
              int od35=Integer.parseInt(ord35);
              int od45=Integer.parseInt(ord45);
              int od55=Integer.parseInt(ord55);
              int od65=Integer.parseInt(ord65);
              int od75=Integer.parseInt(ord75);
              int od85=Integer.parseInt(ord85);
              int od95=Integer.parseInt(ord95);
              int od105=Integer.parseInt(ord105);
              int od115=Integer.parseInt(ord115);
              int od125=Integer.parseInt(ord125);
 
              String ord26=order26.getText();
              String ord36=order36.getText();
              String ord46=order46.getText();
              String ord56=order56.getText();
              String ord66=order66.getText();
              String ord76=order76.getText();
              String ord86=order86.getText();
              String ord96=order96.getText();
              String ord106=order106.getText();
              String ord116=order116.getText();
              String ord126=order126.getText();
 
              int od26=Integer.parseInt(ord26);
              int od36=Integer.parseInt(ord36);
              int od46=Integer.parseInt(ord46);
              int od56=Integer.parseInt(ord56);
              int od66=Integer.parseInt(ord66);
              int od76=Integer.parseInt(ord76);
              int od86=Integer.parseInt(ord86);
              int od96=Integer.parseInt(ord96);
              int od106=Integer.parseInt(ord106);
              int od116=Integer.parseInt(ord116);
              int od126=Integer.parseInt(ord126);
 
              String ord27=order27.getText();
              String ord37=order37.getText();
              String ord47=order47.getText();
              String ord57=order57.getText();
              String ord67=order67.getText();
              String ord77=order77.getText();
              String ord87=order87.getText();
              String ord97=order97.getText();
              String ord107=order107.getText();
              String ord117=order117.getText();
              String ord127=order127.getText();
 
              int od27=Integer.parseInt(ord27);
              int od37=Integer.parseInt(ord37);
              int od47=Integer.parseInt(ord47);
              int od57=Integer.parseInt(ord57);
              int od67=Integer.parseInt(ord67);
              int od77=Integer.parseInt(ord77);
              int od87=Integer.parseInt(ord87);
              int od97=Integer.parseInt(ord97);
              int od107=Integer.parseInt(ord107);
              int od117=Integer.parseInt(ord117);
              int od127=Integer.parseInt(ord127);
 
              String ord28=order28.getText();
              String ord38=order38.getText();
              String ord48=order48.getText();
              String ord58=order58.getText();
              String ord68=order68.getText();
              String ord78=order78.getText();
              String ord88=order88.getText();
              String ord98=order98.getText();
              String ord108=order108.getText();
              String ord118=order118.getText();
              String ord128=order128.getText();
 
              int od28=Integer.parseInt(ord28);
              int od38=Integer.parseInt(ord38);
              int od48=Integer.parseInt(ord48);
              int od58=Integer.parseInt(ord58);
              int od68=Integer.parseInt(ord68);
              int od78=Integer.parseInt(ord78);
              int od88=Integer.parseInt(ord88);
              int od98=Integer.parseInt(ord98);
              int od108=Integer.parseInt(ord108);
              int od118=Integer.parseInt(ord118);
              int od128=Integer.parseInt(ord128);
 
              String ord29=order29.getText();
              String ord39=order39.getText();
              String ord49=order49.getText();
              String ord59=order59.getText();
              String ord69=order69.getText();
              String ord79=order79.getText();
              String ord89=order89.getText();
              String ord99=order99.getText();
              String ord109=order109.getText();
              String ord119=order119.getText();
              String ord129=order129.getText();
 
              int od29=Integer.parseInt(ord29);
              int od39=Integer.parseInt(ord39);
              int od49=Integer.parseInt(ord49);
              int od59=Integer.parseInt(ord59);
              int od69=Integer.parseInt(ord69);
              int od79=Integer.parseInt(ord79);
              int od89=Integer.parseInt(ord89);
              int od99=Integer.parseInt(ord99);
              int od109=Integer.parseInt(ord109);
              int od119=Integer.parseInt(ord119);
              int od129=Integer.parseInt(ord129);
 
              String ord210=order210.getText();
              String ord310=order310.getText();
              String ord410=order410.getText();
              String ord510=order510.getText();
              String ord610=order610.getText();
              String ord710=order710.getText();
              String ord810=order810.getText();
              String ord910=order910.getText();
              String ord1010=order1010.getText();
              String ord1110=order1110.getText();
              String ord1210=order1210.getText();
 
              int od210=Integer.parseInt(ord210);
              int od310=Integer.parseInt(ord310);
              int od410=Integer.parseInt(ord410);
              int od510=Integer.parseInt(ord510);
              int od610=Integer.parseInt(ord610);
              int od710=Integer.parseInt(ord710);
              int od810=Integer.parseInt(ord810);
              int od910=Integer.parseInt(ord910);
              int od1010=Integer.parseInt(ord1010);
              int od1110=Integer.parseInt(ord1110);
              int od1210=Integer.parseInt(ord1210);
 
              String med=medu.getText();
              String med2=medu2.getText();
              String med3=medu3.getText();
              String med4=medu4.getText();
              String med5=medu5.getText();
              String med6=medu6.getText();
              String med7=medu7.getText();
              String med8=medu8.getText();
              String med9=medu9.getText();
              int md=Integer.parseInt(med);
              int md2=Integer.parseInt(med2);
              int md3=Integer.parseInt(med3);
              int md4=Integer.parseInt(med4);
              int md5=Integer.parseInt(med5);
              int md6=Integer.parseInt(med6);
              int md7=Integer.parseInt(med7);
              int md8=Integer.parseInt(med8);
              int md9=Integer.parseInt(med9);
 
              String fed=fedu.getText();
              String fed2=fedu2.getText();
              String fed3=fedu3.getText();
              String fed4=fedu4.getText();
              String fed5=fedu5.getText();
              String fed6=fedu6.getText();
              String fed7=fedu7.getText();
              String fed8=fedu8.getText();
              String fed9=fedu9.getText();
              int fd=Integer.parseInt(fed);
              int fd2=Integer.parseInt(fed2);
              int fd3=Integer.parseInt(fed3);
              int fd4=Integer.parseInt(fed4);
              int fd5=Integer.parseInt(fed5);
              int fd6=Integer.parseInt(fed6);
              int fd7=Integer.parseInt(fed7);
              int fd8=Integer.parseInt(fed8);
              int fd9=Integer.parseInt(fed9);
 
              int count;
              int tott;
              int tot;
              int totts;
 
             if(sxd==1){
 
                 count=sxd2+1;
                 sex2.setText(""+count);
             }
             else if(sxd==2){
             count=sxd3+1;
             sex3.setText(""+count);
             }
             if(sxd2>0||sxd3>0){
             tot=1+sxd2+sxd3;
             sex4.setText(""+tot);
             }
             //Computation of Place of birth
            if(pla==1){
                count=pla2+1;
                place2.setText(""+count);
            }
            else if(pla==2){
                count=pla3+1;
                place3.setText(""+count);
            }
            else if(pla==3){
                count=pla4+1;
               place4.setText(""+count);
            }
            else if(pla==4){
                count=pla5+1;
                place5.setText(""+count);
            }
             if(pla2>0||pla3>0||pla4>0||pla5>0){
                 tot=1+pla2+pla3+pla4+pla5;
                 place6.setText(""+tot);
             }
             //Computation of birth order
             if(agd<15){
                 if(od==1){
                     count=od1+1;
                     totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                     int count11=totts;
                     order210.setText(""+totts);
                     order1.setText(""+count);
                 }
                 else if(od==2){
                     count=od2+1;
                     order2.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od3+1;
                     order3.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od4+1;
                     order4.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od5+1;
                     order5.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od6+1;
                     order6.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
 
                 }
                 else if(od==7){
                     count=od7+1;
                     order7.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od8+1;
                     order8.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od9+1;
                     order9.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od==10){
                     count=od10+1;
                     order10.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 if(od>0){
                     tot=1+od1+od2+od3+od4+od5+od6+od7+od8+od9+od10;
                     order11.setText(""+tot);
                     totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                     order1210.setText(""+totts);
                 }
 
             }
             if(agd>=15&&agd<20){
                 if(od==1){
                 count=od21+1;
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order21.setText(""+count);
                 order210.setText(""+totts);
                 }
              else if(od==2){
                 count=od31+1;
                 order31.setText(""+count);
                 totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                 order310.setText(""+totts);
             }
              else if(od==3){
                  count=od41+1;
                  order41.setText(""+count);
                  totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                  order410.setText(""+totts);
              }
              else if(od==4){
                  count=od51+1;
                  order51.setText(""+count);
                  totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                  order510.setText(""+totts);
              }
              else if(od==5){
                  count=od61+1;
                  order61.setText(""+count);
                  totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                  order610.setText(""+totts);
              }
              else if(od==6){
                  count=od71+1;
                  order71.setText(""+count);
                  totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                  order710.setText(""+totts);
              }
              else if(od==7){
                  count=od81+1;
                  order81.setText(""+count);
                  totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                  order810.setText(""+totts);
              }
              else if(od==8){
                  count=od91+1;
                  order91.setText(""+count);
                  totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                  order910.setText(""+totts);
              }
              else if(od==9){
                  count=od101+1;
                  order101.setText(""+count);
                  totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                  order1010.setText(""+totts);
              }
              else if(od==10){
                  count=od111+1;
                  order111.setText(""+count);
                  totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                  order1110.setText(""+totts);
              }
             tot=1+od21+od31+od41+od51+od61+od71+od81+od91+od101+od111;
             order121.setText(""+tot);
             totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
             order1210.setText(""+totts);
             }
             else if(agd>=20&&agd<25){
                 if(od==1){
                 count=od22+1;
                 order22.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od32+1;
                     order32.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
 
                 }
                 else if(od==3){
                     count=od42+1;
                     order42.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od52+1;
                     order52.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od62+1;
                     order62.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od72+1;
                     order72.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od82+1;
                     order82.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od92+1;
                     order92.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od102+1;
                     order102.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od112+1;
                     order112.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od22+od32+od42+od52+od62+od72+od82+od92+od102+od112;
                 order122.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
 
             else if(agd>=25&&agd<30){
                 if(od==1){
                 count=od23+1;
                 order23.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od33+1;
                     order33.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od43+1;
                     order43.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od53+1;
                     order53.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od63+1;
                     order63.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od73+1;
                     order73.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od83+1;
                     order83.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od93+1;
                     order93.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od103+1;
                     order103.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od113+1;
                     order113.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od23+od33+od43+od53+od63+od73+od83+od93+od103+od113;
                 order123.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
             else if(agd>=30&&agd<35){
                 if(od==1){
                 count=od24+1;
                 order24.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od34+1;
                     order34.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od44+1;
                     order44.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od54+1;
                     order54.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od64+1;
                     order64.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od74+1;
                     order74.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od84+1;
                     order84.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od94+1;
                     order94.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od104+1;
                     order104.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od114+1;
                     order114.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od24+od34+od44+od54+od64+od74+od84+od94+od104+od114;
                 order124.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
             else if(agd>=35&&agd<40){
                 if(od==1){
                 count=od25+1;
                 order25.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od35+1;
                     order35.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od45+1;
                     order45.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od55+1;
                     order55.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od65+1;
                     order65.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od75+1;
                     order75.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od85+1;
                     order85.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od95+1;
                     order95.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od105+1;
                     order105.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od115+1;
                     order115.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od25+od35+od45+od55+od65+od75+od85+od95+od105+od115;
                 order125.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
             else if(agd>=40&&agd<45){
                 if(od==1){
                 count=od26+1;
                 order26.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od32+1;
                     order36.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od46+1;
                     order46.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od56+1;
                     order56.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od66+1;
                     order66.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od76+1;
                     order76.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od86+1;
                     order86.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od96+1;
                     order96.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od106+1;
                     order106.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od116+1;
                     order116.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od26+od36+od46+od56+od66+od76+od86+od96+od106+od116;
                 order126.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
             else if(agd>=45&&agd<50){
                 if(od==1){
                 count=od27+1;
                 order27.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od32+1;
                     order37.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od47+1;
                     order47.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od57+1;
                     order57.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od67+1;
                     order67.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od77+1;
                     order77.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od87+1;
                     order87.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od97+1;
                     order97.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od107+1;
                     order107.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od117+1;
                     order117.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od27+od37+od47+od57+od67+od77+od87+od97+od107+od117;
                 order127.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
             else if(agd>=50){
                 if(od==1){
                 count=od28+1;
                 order28.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 }
                 else if(od==2){
                     count=od39+1;
                     order38.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                 }
                 else if(od==3){
                     count=od48+1;
                     order48.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                 }
                 else if(od==4){
                     count=od58+1;
                     order58.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                 }
                 else if(od==5){
                     count=od68+1;
                     order68.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                 }
                 else if(od==6){
                     count=od78+1;
                     order78.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                 }
                 else if(od==7){
                     count=od88+1;
                     order89.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                 }
                 else if(od==8){
                     count=od98+1;
                     order98.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                 }
                 else if(od==9){
                     count=od108+1;
                     order108.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                 }
                 else if(od>=10){
                     count=od118+1;
                     order118.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                 }
                 tot=1+od28+od38+od48+od58+od68+od78+od88+od98+od108+od118;
                 order128.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
             }
             if(md==1){
                 count=md2+1;
                 medu2.setText(""+count);
             }
             else if(md==2){
                 count=md3+1;
                 medu3.setText(""+count);
             }
             else if(md==3){
                 count=md4+1;
                 medu4.setText(""+count);
             }
             else if(md==4){
                 count=md5+1;
                 medu5.setText(""+count);
             }
             else if(md==6){
                 count=md6+1;
                 medu6.setText(""+count);
             }
             else if(md==7){
                 count=md7+1;
                 medu7.setText(""+count);
             }
             else if(md==8){
                 count=md8+1;
                 medu8.setText(""+count);
             }
             else if(md==0){
                 count=md9+1;
                 medu9.setText(""+count);
             }
             if(fd==1){
                 count=fd2+1;
                 fedu2.setText(""+count);
             }
             else if(fd==2){
                 count=fd3+1;
                 fedu3.setText(""+count);
             }
             else if(fd==3){
                 count=fd4+1;
                 fedu4.setText(""+count);
             }
             else if(fd==4){
                 count=fd5+1;
                 fedu5.setText(""+count);
             }
             else if(fd==6){
                 count=fd6+1;
                 fedu6.setText(""+count);
             }
             else if(fd==7){
                 count=fd7+1;
                 fedu7.setText(""+count);
             }
             else if(fd==8){
                 count=fd8+1;
                 fedu8.setText(""+count);
             }
             else if(fd==0){
                 count=fd9+1;
                 fedu9.setText(""+count);
             }
           }
 
            catch(Exception a){
           JOptionPane.showMessageDialog(null, a);
               }
             }
 
          }
 
       });
 
       gen.addActionListener(new ActionListener(){
           public void actionPerformed(ActionEvent e){
 
               //Processing sex
              String sx=sex.getText();
              String sx2=sex2.getText();
              String sx3=sex3.getText();
              String sx4=sex4.getText();
 
              String sx22=cnt2sex2.getText();
              String sx23=cnt2sex3.getText();
              String sx24=cnt2sex4.getText();
 
              String sx32=cnt3sex2.getText();
              String sx33=cnt3sex3.getText();
              String sx34=cnt3sex4.getText();
 
              String sx42=cnt4sex2.getText();
              String sx43=cnt4sex3.getText();
              String sx44=cnt4sex4.getText();
 
              int sxd=Integer.parseInt(sx);
              int sxd2=Integer.parseInt(sx2);
              int sxd3=Integer.parseInt(sx3);
              int sxd4=Integer.parseInt(sx3);
 
              int cnt2sxd2=Integer.parseInt(sx22);
              //Processing place of birth
              String plac=place.getText();
              String plac2=place2.getText();
              String plac3=place3.getText();
              String plac4=place4.getText();
              String plac5=place5.getText();
              String plac6=place6.getText();
 
              String plac22=cnt2place2.getText();
              String plac23=cnt2place3.getText();
              String plac24=cnt2place4.getText();
              String plac25=cnt2place5.getText();
              String plac26=cnt2place6.getText();
 
              String plac32=cnt3place2.getText();
              String plac33=cnt3place3.getText();
              String plac34=cnt3place4.getText();
              String plac35=cnt3place5.getText();
              String plac36=cnt3place6.getText();
 
              String plac42=cnt4place2.getText();
              String plac43=cnt4place3.getText();
              String plac44=cnt4place4.getText();
              String plac45=cnt4place5.getText();
              String plac46=cnt4place6.getText();
 
              int pla=Integer.parseInt(plac);
              int pla2=Integer.parseInt(plac2);
              int pla3=Integer.parseInt(plac3);
              int pla4=Integer.parseInt(plac4);
              int pla5=Integer.parseInt(plac5);
              int pla6=Integer.parseInt(plac6);
              //Processing Birth order by age of Mother
              String ages=age.getText();
              int agd=Integer.parseInt(ages);
 
              String ord=order.getText();
              String ord1=order1.getText();
              String ord2=order2.getText();
              String ord3=order3.getText();
              String ord4=order4.getText();
              String ord5=order5.getText();
              String ord6=order6.getText();
              String ord7=order7.getText();
              String ord8=order8.getText();
              String ord9=order9.getText();
              String ord10=order10.getText();
              String ord11=order11.getText();
              int od=Integer.parseInt(ord);
              int od1=Integer.parseInt(ord1);
              int od2=Integer.parseInt(ord2);
              int od3=Integer.parseInt(ord3);
              int od4=Integer.parseInt(ord4);
              int od5=Integer.parseInt(ord5);
              int od6=Integer.parseInt(ord6);
              int od7=Integer.parseInt(ord7);
              int od8=Integer.parseInt(ord8);
              int od9=Integer.parseInt(ord9);
              int od10=Integer.parseInt(ord10);
              int od11=Integer.parseInt(ord11);
 
              String ord21=order21.getText();
              String ord31=order31.getText();
              String ord41=order41.getText();
              String ord51=order51.getText();
              String ord61=order61.getText();
              String ord71=order71.getText();
              String ord81=order81.getText();
              String ord91=order91.getText();
              String ord101=order101.getText();
              String ord111=order111.getText();
              String ord121=order121.getText();
 
              int od21=Integer.parseInt(ord21);
              int od31=Integer.parseInt(ord31);
              int od41=Integer.parseInt(ord41);
              int od51=Integer.parseInt(ord51);
              int od61=Integer.parseInt(ord61);
              int od71=Integer.parseInt(ord71);
              int od81=Integer.parseInt(ord81);
              int od91=Integer.parseInt(ord91);
              int od101=Integer.parseInt(ord101);
              int od111=Integer.parseInt(ord111);
              int od121=Integer.parseInt(ord121);
 
              String ord22=order22.getText();
              String ord32=order32.getText();
              String ord42=order42.getText();
              String ord52=order52.getText();
              String ord62=order62.getText();
              String ord72=order72.getText();
              String ord82=order82.getText();
              String ord92=order92.getText();
              String ord102=order102.getText();
              String ord112=order112.getText();
              String ord122=order122.getText();
 
              int od22=Integer.parseInt(ord22);
              int od32=Integer.parseInt(ord32);
              int od42=Integer.parseInt(ord42);
              int od52=Integer.parseInt(ord52);
              int od62=Integer.parseInt(ord62);
              int od72=Integer.parseInt(ord72);
              int od82=Integer.parseInt(ord82);
              int od92=Integer.parseInt(ord92);
              int od102=Integer.parseInt(ord102);
              int od112=Integer.parseInt(ord112);
              int od122=Integer.parseInt(ord122);
 
              String ord23=order23.getText();
              String ord33=order33.getText();
              String ord43=order43.getText();
              String ord53=order53.getText();
              String ord63=order63.getText();
              String ord73=order73.getText();
              String ord83=order83.getText();
              String ord93=order93.getText();
              String ord103=order103.getText();
              String ord113=order113.getText();
              String ord123=order123.getText();
 
              int od23=Integer.parseInt(ord23);
              int od33=Integer.parseInt(ord33);
              int od43=Integer.parseInt(ord43);
              int od53=Integer.parseInt(ord53);
              int od63=Integer.parseInt(ord63);
              int od73=Integer.parseInt(ord73);
              int od83=Integer.parseInt(ord83);
              int od93=Integer.parseInt(ord93);
              int od103=Integer.parseInt(ord103);
              int od113=Integer.parseInt(ord113);
              int od123=Integer.parseInt(ord123);
 
              String ord24=order24.getText();
              String ord34=order34.getText();
              String ord44=order44.getText();
              String ord54=order54.getText();
              String ord64=order64.getText();
              String ord74=order74.getText();
              String ord84=order84.getText();
              String ord94=order94.getText();
              String ord104=order104.getText();
              String ord114=order114.getText();
              String ord124=order124.getText();
 
              int od24=Integer.parseInt(ord24);
              int od34=Integer.parseInt(ord34);
              int od44=Integer.parseInt(ord44);
              int od54=Integer.parseInt(ord54);
              int od64=Integer.parseInt(ord64);
              int od74=Integer.parseInt(ord74);
              int od84=Integer.parseInt(ord84);
              int od94=Integer.parseInt(ord94);
              int od104=Integer.parseInt(ord104);
              int od114=Integer.parseInt(ord114);
              int od124=Integer.parseInt(ord124);
 
              String ord25=order25.getText();
              String ord35=order35.getText();
              String ord45=order45.getText();
              String ord55=order55.getText();
              String ord65=order65.getText();
              String ord75=order75.getText();
              String ord85=order85.getText();
              String ord95=order95.getText();
              String ord105=order105.getText();
              String ord115=order115.getText();
              String ord125=order125.getText();
 
              int od25=Integer.parseInt(ord25);
              int od35=Integer.parseInt(ord35);
              int od45=Integer.parseInt(ord45);
              int od55=Integer.parseInt(ord55);
              int od65=Integer.parseInt(ord65);
              int od75=Integer.parseInt(ord75);
              int od85=Integer.parseInt(ord85);
              int od95=Integer.parseInt(ord95);
              int od105=Integer.parseInt(ord105);
              int od115=Integer.parseInt(ord115);
              int od125=Integer.parseInt(ord125);
 
              String ord26=order26.getText();
              String ord36=order36.getText();
              String ord46=order46.getText();
              String ord56=order56.getText();
              String ord66=order66.getText();
              String ord76=order76.getText();
              String ord86=order86.getText();
              String ord96=order96.getText();
              String ord106=order106.getText();
              String ord116=order116.getText();
              String ord126=order126.getText();
 
              int od26=Integer.parseInt(ord26);
              int od36=Integer.parseInt(ord36);
              int od46=Integer.parseInt(ord46);
              int od56=Integer.parseInt(ord56);
              int od66=Integer.parseInt(ord66);
              int od76=Integer.parseInt(ord76);
              int od86=Integer.parseInt(ord86);
              int od96=Integer.parseInt(ord96);
              int od106=Integer.parseInt(ord106);
              int od116=Integer.parseInt(ord116);
              int od126=Integer.parseInt(ord126);
 
              String ord27=order27.getText();
              String ord37=order37.getText();
              String ord47=order47.getText();
              String ord57=order57.getText();
              String ord67=order67.getText();
              String ord77=order77.getText();
              String ord87=order87.getText();
              String ord97=order97.getText();
              String ord107=order107.getText();
              String ord117=order117.getText();
              String ord127=order127.getText();
 
              int od27=Integer.parseInt(ord27);
              int od37=Integer.parseInt(ord37);
              int od47=Integer.parseInt(ord47);
              int od57=Integer.parseInt(ord57);
              int od67=Integer.parseInt(ord67);
              int od77=Integer.parseInt(ord77);
              int od87=Integer.parseInt(ord87);
              int od97=Integer.parseInt(ord97);
              int od107=Integer.parseInt(ord107);
              int od117=Integer.parseInt(ord117);
              int od127=Integer.parseInt(ord127);
 
              String ord28=order28.getText();
              String ord38=order38.getText();
              String ord48=order48.getText();
              String ord58=order58.getText();
              String ord68=order68.getText();
              String ord78=order78.getText();
              String ord88=order88.getText();
              String ord98=order98.getText();
              String ord108=order108.getText();
              String ord118=order118.getText();
              String ord128=order128.getText();
 
              int od28=Integer.parseInt(ord28);
              int od38=Integer.parseInt(ord38);
              int od48=Integer.parseInt(ord48);
              int od58=Integer.parseInt(ord58);
              int od68=Integer.parseInt(ord68);
              int od78=Integer.parseInt(ord78);
              int od88=Integer.parseInt(ord88);
              int od98=Integer.parseInt(ord98);
              int od108=Integer.parseInt(ord108);
              int od118=Integer.parseInt(ord118);
              int od128=Integer.parseInt(ord128);
 
              String ord29=order29.getText();
              String ord39=order39.getText();
              String ord49=order49.getText();
              String ord59=order59.getText();
              String ord69=order69.getText();
              String ord79=order79.getText();
              String ord89=order89.getText();
              String ord99=order99.getText();
              String ord109=order109.getText();
              String ord119=order119.getText();
              String ord129=order129.getText();
 
              int od29=Integer.parseInt(ord29);
              int od39=Integer.parseInt(ord39);
              int od49=Integer.parseInt(ord49);
              int od59=Integer.parseInt(ord59);
              int od69=Integer.parseInt(ord69);
              int od79=Integer.parseInt(ord79);
              int od89=Integer.parseInt(ord89);
              int od99=Integer.parseInt(ord99);
              int od109=Integer.parseInt(ord109);
              int od119=Integer.parseInt(ord119);
              int od129=Integer.parseInt(ord129);
 
              String ord210=order210.getText();
              String ord310=order310.getText();
              String ord410=order410.getText();
              String ord510=order510.getText();
              String ord610=order610.getText();
              String ord710=order710.getText();
              String ord810=order810.getText();
              String ord910=order910.getText();
              String ord1010=order1010.getText();
              String ord1110=order1110.getText();
              String ord1210=order1210.getText();              
 
              int od210=Integer.parseInt(ord210);
              int od310=Integer.parseInt(ord310);
              int od410=Integer.parseInt(ord410);
              int od510=Integer.parseInt(ord510);
              int od610=Integer.parseInt(ord610);
              int od710=Integer.parseInt(ord710);
              int od810=Integer.parseInt(ord810);
              int od910=Integer.parseInt(ord910);
              int od1010=Integer.parseInt(ord1010);
              int od1110=Integer.parseInt(ord1110);
              int od1210=Integer.parseInt(ord1210);
 
              String ordc2210=orderc2210.getText();
              String ordc2310=orderc2310.getText();
              String ordc2410=orderc2410.getText();
              String ordc2510=orderc2510.getText();
              String ordc2610=orderc2610.getText();
              String ordc2710=orderc2710.getText();
              String ordc2810=orderc2810.getText();
              String ordc2910=orderc2910.getText();
              String ordc21010=orderc21010.getText();
              String ordc21110=orderc21110.getText();
              String ordc21210=orderc21210.getText();
 
              int odc2210=Integer.parseInt(ordc2210);
              int odc2310=Integer.parseInt(ordc2310);
              int odc2410=Integer.parseInt(ordc2410);
              int odc2510=Integer.parseInt(ordc2510);
              int odc2610=Integer.parseInt(ordc2610);
              int odc2710=Integer.parseInt(ordc2710);
              int odc2810=Integer.parseInt(ordc2810);
              int odc2910=Integer.parseInt(ordc2910);
              int odc21010=Integer.parseInt(ordc21010);
              int odc21110=Integer.parseInt(ordc21110);
              int odc21210=Integer.parseInt(ordc21210);
 
              String ordc3210=orderc3210.getText();
              String ordc3310=orderc3310.getText();
              String ordc3410=orderc3410.getText();
              String ordc3510=orderc3510.getText();
              String ordc3610=orderc3610.getText();
              String ordc3710=orderc3710.getText();
              String ordc3810=orderc3810.getText();
              String ordc3910=orderc3910.getText();
              String ordc31010=orderc31010.getText();
              String ordc31110=orderc31110.getText();
              String ordc31210=orderc31210.getText();
 
              int odc3210=Integer.parseInt(ordc3210);
              int odc3310=Integer.parseInt(ordc3310);
              int odc3410=Integer.parseInt(ordc3410);
              int odc3510=Integer.parseInt(ordc3510);
              int odc3610=Integer.parseInt(ordc3610);
              int odc3710=Integer.parseInt(ordc3710);
              int odc3810=Integer.parseInt(ordc3810);
              int odc3910=Integer.parseInt(ordc3910);
              int odc31010=Integer.parseInt(ordc31010);
              int odc31110=Integer.parseInt(ordc31110);
              int odc31210=Integer.parseInt(ordc31210);
 
              String ordc4210=orderc4210.getText();
              String ordc4310=orderc4310.getText();
              String ordc4410=orderc4410.getText();
              String ordc4510=orderc4510.getText();
              String ordc4610=orderc4610.getText();
              String ordc4710=orderc4710.getText();
              String ordc4810=orderc4810.getText();
              String ordc4910=orderc4910.getText();
              String ordc41010=orderc41010.getText();
              String ordc41110=orderc41110.getText();
              String ordc41210=orderc41210.getText();
 
              int odc4210=Integer.parseInt(ordc4210);
              int odc4310=Integer.parseInt(ordc4310);
              int odc4410=Integer.parseInt(ordc4410);
              int odc4510=Integer.parseInt(ordc4510);
              int odc4610=Integer.parseInt(ordc4610);
              int odc4710=Integer.parseInt(ordc4710);
              int odc4810=Integer.parseInt(ordc4810);
              int odc4910=Integer.parseInt(ordc4910);
              int odc41010=Integer.parseInt(ordc41010);
              int odc41110=Integer.parseInt(ordc41110);
              int odc41210=Integer.parseInt(ordc41210);
 
              String med=medu.getText();
              String med2=medu2.getText();
              String med3=medu3.getText();
              String med4=medu4.getText();
              String med5=medu5.getText();
              String med6=medu6.getText();
              String med7=medu7.getText();
              String med8=medu8.getText();
              String med9=medu9.getText();
 
              String md22=cnt2medu2.getText();
              String md23=cnt2medu3.getText();
              String md24=cnt2medu4.getText();
              String md25=cnt2medu5.getText();
              String md26=cnt2medu6.getText();
              String md27=cnt2medu7.getText();
              String md28=cnt2medu8.getText();
              String md29=cnt2medu9.getText();
 
              String md32=cnt2medu2.getText();
              String md33=cnt2medu3.getText();
              String md34=cnt2medu4.getText();
              String md35=cnt2medu5.getText();
              String md36=cnt2medu6.getText();
              String md37=cnt2medu7.getText();
              String md38=cnt2medu8.getText();
              String md39=cnt2medu9.getText();
 
              String md42=cnt2medu2.getText();
              String md43=cnt2medu3.getText();
              String md44=cnt2medu4.getText();
              String md45=cnt2medu5.getText();
              String md46=cnt2medu6.getText();
              String md47=cnt2medu7.getText();
              String md48=cnt2medu8.getText();
              String md49=cnt2medu9.getText();
 
              int md=Integer.parseInt(med);
              int md2=Integer.parseInt(med2);
              int md3=Integer.parseInt(med3);
              int md4=Integer.parseInt(med4);
              int md5=Integer.parseInt(med5);
              int md6=Integer.parseInt(med6);
              int md7=Integer.parseInt(med7);
              int md8=Integer.parseInt(med8);
              int md9=Integer.parseInt(med9);
 
              String fed=fedu.getText();
              String fed2=fedu2.getText();
              String fed3=fedu3.getText();
              String fed4=fedu4.getText();
              String fed5=fedu5.getText();
              String fed6=fedu6.getText();
              String fed7=fedu7.getText();
              String fed8=fedu8.getText();
              String fed9=fedu9.getText();
 
              String fd22=cnt2fedu2.getText();
              String fd23=cnt2fedu3.getText();
              String fd24=cnt2fedu4.getText();
              String fd25=cnt2fedu5.getText();
              String fd26=cnt2fedu6.getText();
              String fd27=cnt2fedu7.getText();
              String fd28=cnt2fedu8.getText();
              String fd29=cnt2fedu9.getText();
 
              String fd32=cnt2fedu2.getText();
              String fd33=cnt2fedu3.getText();
              String fd34=cnt2fedu4.getText();
              String fd35=cnt2fedu5.getText();
              String fd36=cnt2fedu6.getText();
              String fd37=cnt2fedu7.getText();
              String fd38=cnt2fedu8.getText();
              String fd39=cnt2fedu9.getText();
 
              String fd42=cnt2fedu2.getText();
              String fd43=cnt2fedu3.getText();
              String fd44=cnt2fedu4.getText();
              String fd45=cnt2fedu5.getText();
              String fd46=cnt2fedu6.getText();
              String fd47=cnt2fedu7.getText();
              String fd48=cnt2fedu8.getText();
              String fd49=cnt2fedu9.getText();
 
              int fd=Integer.parseInt(fed);
              int fd2=Integer.parseInt(fed2);
              int fd3=Integer.parseInt(fed3);
              int fd4=Integer.parseInt(fed4);
              int fd5=Integer.parseInt(fed5);
              int fd6=Integer.parseInt(fed6);
              int fd7=Integer.parseInt(fed7);
              int fd8=Integer.parseInt(fed8);
              int fd9=Integer.parseInt(fed9);
 
              String lg=lga.getText();
              String st=state.getText();
              String mnt=month.getText();
              String yr=year.getText();
              String rg=reg.getText();
              String cnt2rg=cnt2reg.getText();
              String cnt3rg=cnt3reg.getText();
              String cnt4rg=cnt4reg.getText();
             if(cnt1.isSelected()){
                try{
                    int dial=JOptionPane.showConfirmDialog(null,"Are you sure you want to create Table");
                    if (dial==0){
                        String file="C:/Users/idris/Desktop/VRDFolder/Table.xls";
       //Creating workbook
       HSSFWorkbook wb=new HSSFWorkbook();
       //creat worksheet
       HSSFSheet sheet1=wb.createSheet("Sheet1");
       HSSFSheet sheet2=wb.createSheet("Sheet2");
       HSSFSheet sheet3=wb.createSheet("Table B4");
       HSSFSheet sheet4=wb.createSheet("Table B2");
       HSSFSheet sheet5=wb.createSheet("Table B3");
       HSSFSheet sheet6=wb.createSheet("Table B5");
       HSSFSheet sheet7=wb.createSheet("Table B7");
 
       sheet1.setMargin(sheet1.LeftMargin, 0.25);
       sheet1.setMargin(sheet1.RightMargin, 0.25);
       sheet2.setMargin(sheet2.LeftMargin, 0.25);
       sheet2.setMargin(sheet2.RightMargin, 0.25);
       sheet3.setMargin(sheet3.LeftMargin, 0.25);
       sheet3.setMargin(sheet3.RightMargin, 0.25);
       sheet4.setMargin(sheet4.LeftMargin, 0.25);
       sheet4.setMargin(sheet4.RightMargin, 0.25);
       sheet5.setMargin(sheet5.LeftMargin, 0.25);
       sheet5.setMargin(sheet5.RightMargin, 0.25);
       sheet6.setMargin(sheet6.LeftMargin, 0.25);
       sheet6.setMargin(sheet6.RightMargin, 0.25);
       sheet7.setMargin(sheet6.LeftMargin, 0.25);
       sheet7.setMargin(sheet6.RightMargin, 0.25);
 
       HSSFCellStyle style = wb.createCellStyle();
       HSSFCellStyle style1 = wb.createCellStyle();
       HSSFCellStyle style2 = wb.createCellStyle();
       HSSFCellStyle style3 = wb.createCellStyle();
       HSSFCellStyle style4 = wb.createCellStyle();
 
       HSSFFont font = wb.createFont();
       font.setFontName(HSSFFont.FONT_ARIAL);
       font.setFontHeightInPoints((short) 12);
       font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
       style.setFont(font);
       style1.setFont(font);
       style3.setFont(font);
       style1.setWrapText(true);
       style2.setWrapText(true);
       style3.setWrapText(true);
       style.setAlignment(CellStyle.ALIGN_CENTER);
       style1.setAlignment(CellStyle.ALIGN_CENTER);
       style2.setAlignment(CellStyle.ALIGN_LEFT);
       style3.setAlignment(CellStyle.ALIGN_LEFT);
       style4.setAlignment(CellStyle.BORDER_THIN);
       sheet1.setColumnWidth(1,5000);
       sheet1.setColumnWidth(4,1500);
       sheet1.setColumnWidth(5,1500);
       sheet1.setColumnWidth(6,1500);
       sheet1.setColumnWidth(7,1500);
       sheet1.setColumnWidth(8,1500);
       sheet1.setColumnWidth(9,1500);
       sheet1.setColumnWidth(10,1500);
       sheet1.setColumnWidth(11,1500);
       sheet1.setColumnWidth(12,1500);
       sheet1.setColumnWidth(13,2300);
       //Monthly returns of registrars
       sheet2.setColumnWidth(1, 5500);
       sheet2.setColumnWidth(2, 6000);
       sheet2.setColumnWidth(3,1500);
       sheet2.setColumnWidth(4,1500);
       sheet2.setColumnWidth(5,1500);
       sheet2.setColumnWidth(6,1500);
       sheet2.setColumnWidth(7,1500);
       sheet2.setColumnWidth(8,1500);
       sheet2.setColumnWidth(9, 1500);
 
       //Creating rows for table B4
       HSSFRow row=sheet1.createRow((short)3);
       HSSFRow row2=sheet1.createRow((short)4);
       HSSFRow row3=sheet1.createRow((short)1);
       HSSFRow row4=sheet1.createRow((short)2);
       HSSFRow row5=sheet1.createRow((short)5);
       HSSFRow row6=sheet1.createRow((short)6);
       HSSFRow row7=sheet1.createRow((short)7);
       HSSFRow row8=sheet1.createRow((short)8);
       HSSFRow row9=sheet1.createRow((short)9);
       HSSFRow row10=sheet1.createRow((short)10);
       HSSFRow row11=sheet1.createRow((short)11);
       HSSFRow row12=sheet1.createRow((short)12);
       HSSFRow row13=sheet1.createRow((short)13);
       HSSFRow row14=sheet1.createRow((short)14);
       HSSFRow row15=sheet1.createRow((short)15);
       //Total row
       HSSFRow row16=sheet1.createRow((short)17);
       //Monthly returns of registrars(rows)
       HSSFRow row17=sheet2.createRow((short)1);
       HSSFRow row18=sheet2.createRow((short)2);
       HSSFRow row19=sheet2.createRow((short)3);
       HSSFRow row20=sheet2.createRow((short)4);
       HSSFRow row21=sheet2.createRow((short)5);
       HSSFRow row22=sheet2.createRow((short)6);
       //registration centre for sheet2
       HSSFRow row22a=sheet2.createRow((short)7);
       HSSFRow row22b=sheet2.createRow((short)8);
       HSSFRow row22c=sheet2.createRow((short)9);
       //centre 2 sex
       HSSFRow row22as=sheet2.createRow((short)7);
       HSSFRow row22bs=sheet2.createRow((short)7);
       HSSFRow row22cs=sheet2.createRow((short)7);
       //cntre 3 sex
       HSSFRow row22d=sheet2.createRow((short)8);
       HSSFRow row22e=sheet2.createRow((short)8);
       HSSFRow row22f=sheet2.createRow((short)8);
       //centre 4 sex
       HSSFRow row22g=sheet2.createRow((short)9);
       HSSFRow row22h=sheet2.createRow((short)9);
       HSSFRow row22i=sheet2.createRow((short)9);
 
       HSSFRow row23=sheet2.createRow((short)15);
       //Table B1 rows
       HSSFRow row24=sheet3.createRow((short)1);
       HSSFRow row25=sheet3.createRow((short)2);
       HSSFRow row26=sheet3.createRow((short)3);
       HSSFRow row27=sheet3.createRow((short)4);
       HSSFRow row28=sheet3.createRow((short)5);
       HSSFRow row29=sheet3.createRow((short)6);
       HSSFRow row30=sheet3.createRow((short)7);
       HSSFRow row31=sheet3.createRow((short)8);
       HSSFRow row32=sheet3.createRow((short)9);
 
       HSSFRow row32a=sheet3.createRow((short)10);
       HSSFRow row32b=sheet3.createRow((short)11);
       HSSFRow row32c=sheet3.createRow((short)12);
       HSSFRow row33=sheet3.createRow((short)15);
       HSSFRow row34=sheet3.createRow((short)16);
 
       //Column for table B1
       row24.createCell((short)5).setCellValue("TABLE B1");
       row25.createCell((short)3).setCellValue("LIVE BIRTH BY PLACE OF OCCURENCE");
       row26.createCell((short)0).setCellValue("L.G.A");
       row26.createCell((short)1).setCellValue(""+lg);
       row26.createCell((short)7).setCellValue("MONTH");
       row26.createCell((short)8).setCellValue(""+mnt);
       row27.createCell((short)0).setCellValue("STATE:");
       row27.createCell((short)1).setCellValue(""+st);
       row27.createCell((short)7).setCellValue("YEAR");
       row27.createCell((short)8).setCellValue(""+yr);
       sheet3.setColumnWidth(0, 5500);
       row29.createCell((short)1).setCellValue("At");
       row30.createCell((short)1).setCellValue("Home");
       sheet3.setColumnWidth(1, 1500);
       row28.createCell((short)3).setCellValue("RURAL");
       row28.createCell((short)8).setCellValue("URBAN");
       row29.createCell((short)0).setCellValue("REGISTRATION CENTRE");
       row29.createCell((short)2).setCellValue("Hospital");
       row30.createCell((short)2).setCellValue("Maternity");
       row31.createCell((short)2).setCellValue("Home");
       row29.createCell((short)3).setCellValue("Traditional");
       row30.createCell((short)3).setCellValue("Doctor's");
       row31.createCell((short)3).setCellValue("Place");
       row29.createCell((short)4).setCellValue("Others");
       sheet3.setColumnWidth(4, 1500);
       row29.createCell((short)5).setCellValue("Total");
       sheet3.setColumnWidth(5, 1500);
       row29.createCell((short)6).setCellValue("At");
       sheet3.setColumnWidth(6, 1500);
       row30.createCell((short)6).setCellValue("Home");
       row29.createCell((short)7).setCellValue("Hospital");
       row20.createCell((short)7).setCellValue("Maternity");
       row31.createCell((short)7).setCellValue("Home");
       row29.createCell((short)8).setCellValue("Traditional");
       row30.createCell((short)8).setCellValue("Doctor's");
       row31.createCell((short)8).setCellValue("Place");
       row29.createCell((short)9).setCellValue("Others");
       sheet3.setColumnWidth(9, 1500);
       row29.createCell((short)10).setCellValue("Total");
 
       sheet3.setColumnWidth(10, 1500);
       row33.createCell((short)0).setCellValue("L.G.A TOTAL");
       row33.createCell((short)1).setCellFormula("B10+B11+B12+B13");
       row33.createCell((short)2).setCellFormula("C10+C11+C12+C13");
       row33.createCell((short)3).setCellFormula("D10+D11+D12+D13");
       row33.createCell((short)4).setCellFormula("E10+E11+E12+E13");
       row33.createCell((short)5).setCellFormula("F10+F11+F12+F13");
 
       row34.createCell((short)0).setCellValue("Date:______________");
       row34.createCell((short)4).setCellValue("Signature of Deputy Chief Registrar:________________________");
 
       row32.createCell((short)0).setCellValue(""+rg);
       row32.createCell((short)1).setCellValue(""+plac2);
       row32.createCell((short)2).setCellValue(""+plac3);
       row32.createCell((short)3).setCellValue(""+plac4);
       row32.createCell((short)4).setCellValue(""+plac5);
       row32.createCell((short)5).setCellValue(""+plac6);
 
       row32a.createCell((short)1).setCellValue(""+plac22);
       row32a.createCell((short)2).setCellValue(""+plac23);
       row32a.createCell((short)3).setCellValue(""+plac24);
       row32a.createCell((short)4).setCellValue(""+plac25);
       row32a.createCell((short)5).setCellValue(""+plac26);
 
       row32b.createCell((short)1).setCellValue(""+plac32);
       row32b.createCell((short)2).setCellValue(""+plac33);
       row32b.createCell((short)3).setCellValue(""+plac34);
       row32b.createCell((short)4).setCellValue(""+plac35);
       row32b.createCell((short)5).setCellValue(""+plac36);
 
       row32c.createCell((short)1).setCellValue(""+plac42);
       row32c.createCell((short)2).setCellValue(""+plac43);
       row32c.createCell((short)3).setCellValue(""+plac44);
       row32c.createCell((short)4).setCellValue(""+plac45);
       row32c.createCell((short)5).setCellValue(""+plac46);
       //Row value for registration cntre
       row32a.createCell((short)0).setCellValue(""+cnt2rg);
       row32b.createCell((short)0).setCellValue(""+cnt3rg);
       row32c.createCell((short)0).setCellValue(""+cnt4rg);
 
       //Column for sheet2 (Monthly returns of registrars
       row17.createCell((short)3).setCellValue("MONTHLY RETURNS OF REGISTRARS");
       row18.createCell((short)1).setCellValue("L.G.A");
       row18.createCell((short)2).setCellValue(""+lg);
       row18.createCell((short)7).setCellValue("MONTH");
       row18.createCell((short)9).setCellValue(""+mnt);
       row19.createCell((short)1).setCellValue("STATE");
       row19.createCell((short)2).setCellValue(""+st);
       row19.createCell((short)7).setCellValue("YEAR");
       row19.createCell((short)9).setCellValue(""+yr);
       row20.createCell((short)1).setCellValue("NAME OF REGISTRAR");
       row20.createCell((short)2).setCellValue("REGISTRATION CENTRE");
       row20.createCell((short)3).setCellValue("LIVE BIRTHS");
       row20.createCell((short)6).setCellValue("DEATHS");
       row20.createCell((short)9).setCellValue("STILL BIRTHS");
       row21.createCell((short)3).setCellValue("M");
       row21.createCell((short)4).setCellValue("F");
       row21.createCell((short)5).setCellValue("T");
       row21.createCell((short)6).setCellValue("M");
       row21.createCell((short)7).setCellValue("F");
       row21.createCell((short)8).setCellValue("T");
       row21.createCell((short)9).setCellValue("T");
       row22.createCell((short)3).setCellValue(""+sx2);
       //centre 2 sex
       row22as.createCell((short)3).setCellValue(""+sx22);
       row22bs.createCell((short)4).setCellValue(""+sx23);
       row22cs.createCell((short)5).setCellValue(""+sx24);
       //centre 3 sex
       row22d.createCell((short)3).setCellValue(""+sx32);
       row22e.createCell((short)4).setCellValue(""+sx33);
       row22f.createCell((short)5).setCellValue(""+sx34);
       //centre 4 sex
       row22g.createCell((short)3).setCellValue(""+sx42);
       row22h.createCell((short)4).setCellValue(""+sx43);
       row22i.createCell((short)5).setCellValue(""+sx44);
 
       row22.createCell((short)4).setCellValue(""+sx3);
       row22.createCell((short)5).setCellValue(""+sx4);
       row22.createCell((short)2).setCellValue(""+rg);
       row22a.createCell((short)2).setCellValue(""+cnt2rg);
       row22b.createCell((short)2).setCellValue(""+cnt3rg);
       row22c.createCell((short)2).setCellValue(""+cnt4rg);
       row23.createCell((short)1).setCellValue("TOTAL");
 
 
       row23.createCell((short)3).setCellFormula("D7+D8+D9+D10");
       row23.createCell((short)4).setCellFormula("E7+E8+E9+E10");
       row23.createCell((short)5).setCellFormula("F7+F8+F9+F10");
       //Creating columns for table B4
       row.createCell((short) 1).setCellValue("L.G.A:");
       row.createCell((short) 2).setCellValue(""+lg);
       row.createCell((short)13).setCellValue("MONTHS:");
       row.createCell((short) 14).setCellValue(""+mnt);
       row2.createCell((short) 1).setCellValue("STATE:");
       row2.createCell((short) 2).setCellValue(""+st);
       row2.createCell((short)13).setCellValue("YEAR:");
       row2.createCell((short) 14).setCellValue(""+yr);
       row3.createCell((short)6).setCellValue("TABLE B4");
       row4.createCell((short)5).setCellValue("BIRTH ORDER BY AGE OF MOTHER");
       row5.createCell((short)1).setCellValue("Age Group Of Mother");
       row5.createCell((short)3).setCellValue("Total Births");
       row7.createCell((short)3).setCellValue(""+od11);
       row8.createCell((short)3).setCellValue(""+od121);
       row9.createCell((short)3).setCellValue(""+od122);
       row10.createCell((short)3).setCellValue(""+od123);
       row11.createCell((short)3).setCellValue(""+od124);
       row12.createCell((short)3).setCellValue(""+od125);
       row13.createCell((short)3).setCellValue(""+od126);
       row14.createCell((short)3).setCellValue(""+od127);
       row15.createCell((short)3).setCellValue(""+od128);
       row5.createCell((short)10).setCellValue("BIRTH ORDER");
       row6.createCell((short)4).setCellValue("1");
       row6.createCell((short)5).setCellValue("2");
       row6.createCell((short)6).setCellValue("3");
       row6.createCell((short)7).setCellValue("4");
       row6.createCell((short)8).setCellValue("5");
       row6.createCell((short)9).setCellValue("6");
       row6.createCell((short)10).setCellValue("7");
       row6.createCell((short)11).setCellValue("8");
       row6.createCell((short)12).setCellValue("9");
       row6.createCell((short)13).setCellValue("10");
       HSSFCell cell=row7.createCell(1);
 
       HSSFCell cell2=row8.createCell(1);
       HSSFCell cell3=row9.createCell(1);
       HSSFCell cell4=row10.createCell(1);
       HSSFCell cell5=row11.createCell(1);
       HSSFCell cell6=row12.createCell(1);
       HSSFCell cell7=row13.createCell(1);
       HSSFCell cell8=row14.createCell(1);
       HSSFCell cell9=row16.createCell(1);
 
       cell.setCellValue("Below15");
       cell.setCellStyle(style);
       cell2.setCellValue("20-24");
       cell2.setCellStyle(style);
       cell3.setCellValue("25-29");
       cell3.setCellStyle(style);
       cell4.setCellValue("30-34");
       cell4.setCellStyle(style);
       cell5.setCellValue("35-39");
       cell5.setCellStyle(style);
       cell6.setCellValue("40-44");
       cell6.setCellStyle(style);
       cell7.setCellValue("45-49");
       cell7.setCellStyle(style);
       cell8.setCellValue("50+");
       cell8.setCellStyle(style);
       cell9.setCellValue("TOTAL");
       cell9.setCellStyle(style);
       row16.createCell((short)3).setCellValue(""+od1210);
 
       //First row of the table  B4
       row7.createCell((short)4).setCellValue(od1);
       row7.createCell((short)5).setCellValue(od2);
       row7.createCell((short)6).setCellValue(od3);
       row7.createCell((short)7).setCellValue(od4);
       row7.createCell((short)8).setCellValue(od5);
       row7.createCell((short)9).setCellValue(od6);
       row7.createCell((short)10).setCellValue(od7);
       row7.createCell((short)11).setCellValue(od8);
       row7.createCell((short)12).setCellValue(od9);
       row7.createCell((short)13).setCellValue(od10);
       //Second row of the table B4
       row8.createCell((short)4).setCellValue(od21);
       row8.createCell((short)5).setCellValue(od31);
       row8.createCell((short)6).setCellValue(od41);
       row8.createCell((short)7).setCellValue(od51);
       row8.createCell((short)8).setCellValue(od61);
       row8.createCell((short)9).setCellValue(od71);
       row8.createCell((short)10).setCellValue(od81);
       row8.createCell((short)11).setCellValue(od91);
       row8.createCell((short)12).setCellValue(od101);
       row8.createCell((short)13).setCellValue(od111);
       //Third row of the table B4
       row9.createCell((short)4).setCellValue(od22);
       row9.createCell((short)5).setCellValue(od32);
       row9.createCell((short)6).setCellValue(od42);
       row9.createCell((short)7).setCellValue(od52);
       row9.createCell((short)8).setCellValue(od62);
       row9.createCell((short)9).setCellValue(od72);
       row9.createCell((short)10).setCellValue(od82);
       row9.createCell((short)11).setCellValue(od92);
       row9.createCell((short)12).setCellValue(od102);
       row9.createCell((short)13).setCellValue(od112);
       //Forth row of the table B4
       row10.createCell((short)4).setCellValue(od23);
       row10.createCell((short)5).setCellValue(od33);
       row10.createCell((short)6).setCellValue(od43);
       row10.createCell((short)7).setCellValue(od53);
       row10.createCell((short)8).setCellValue(od63);
       row10.createCell((short)9).setCellValue(od73);
       row10.createCell((short)10).setCellValue(od83);
       row10.createCell((short)11).setCellValue(od93);
       row10.createCell((short)12).setCellValue(od103);
       row10.createCell((short)13).setCellValue(od113);
       //Fift row of the table B4
       row11.createCell((short)4).setCellValue(od24);
       row11.createCell((short)5).setCellValue(od34);
       row11.createCell((short)6).setCellValue(od44);
       row11.createCell((short)7).setCellValue(od54);
       row11.createCell((short)8).setCellValue(od64);
       row11.createCell((short)9).setCellValue(od74);
       row11.createCell((short)10).setCellValue(od84);
       row11.createCell((short)11).setCellValue(od94);
       row11.createCell((short)12).setCellValue(od104);
       row11.createCell((short)13).setCellValue(od114);
       //Sixth row of the table B4
       row12.createCell((short)4).setCellValue(od25);
       row12.createCell((short)5).setCellValue(od35);
       row12.createCell((short)6).setCellValue(od45);
       row12.createCell((short)7).setCellValue(od55);
       row12.createCell((short)8).setCellValue(od65);
       row12.createCell((short)9).setCellValue(od75);
       row12.createCell((short)10).setCellValue(od85);
       row12.createCell((short)11).setCellValue(od95);
       row12.createCell((short)12).setCellValue(od105);
       row12.createCell((short)13).setCellValue(od115);
       //Seventh row of table B4
       row13.createCell((short)4).setCellValue(od26);
       row13.createCell((short)5).setCellValue(od36);
       row13.createCell((short)6).setCellValue(od46);
       row13.createCell((short)7).setCellValue(od56);
       row13.createCell((short)8).setCellValue(od66);
       row13.createCell((short)9).setCellValue(od76);
       row13.createCell((short)10).setCellValue(od86);
       row13.createCell((short)11).setCellValue(od96);
       row13.createCell((short)12).setCellValue(od106);
       row13.createCell((short)13).setCellValue(od116);
       //Eigth row of table B4
       row14.createCell((short)4).setCellValue(od27);
       row14.createCell((short)5).setCellValue(od37);
       row14.createCell((short)6).setCellValue(od47);
       row14.createCell((short)7).setCellValue(od57);
       row14.createCell((short)8).setCellValue(od67);
       row14.createCell((short)9).setCellValue(od77);
       row14.createCell((short)10).setCellValue(od87);
       row14.createCell((short)11).setCellValue(od97);
       row14.createCell((short)12).setCellValue(od107);
       row14.createCell((short)13).setCellValue(od117);
       //nineth row of table B4
       row15.createCell((short)4).setCellValue(od28);
       row15.createCell((short)5).setCellValue(od38);
       row15.createCell((short)6).setCellValue(od48);
       row15.createCell((short)7).setCellValue(od58);
       row15.createCell((short)8).setCellValue(od68);
       row15.createCell((short)9).setCellValue(od78);
       row15.createCell((short)10).setCellValue(od88);
       row15.createCell((short)11).setCellValue(od98);
       row15.createCell((short)12).setCellValue(od108);
       row15.createCell((short)13).setCellValue(od118);
       //Total row of table B4
       row16.createCell((short)4).setCellValue(od210);
       row16.createCell((short)5).setCellValue(od310);
       row16.createCell((short)6).setCellValue(od410);
       row16.createCell((short)7).setCellValue(od510);
       row16.createCell((short)8).setCellValue(od610);
       row16.createCell((short)9).setCellValue(od710);
       row16.createCell((short)10).setCellValue(od810);
       row16.createCell((short)11).setCellValue(od910);
       row16.createCell((short)12).setCellValue(od1010);
       row16.createCell((short)13).setCellValue(od1110);
 
       row16.createCell((short)3).setCellFormula("D8+D9+D10+D11+D12+D13+D14+D15+D16");
       row16.createCell((short)4).setCellFormula("E8+E9+E10+E11+E12+E13+E14+E15+E16");
       row16.createCell((short)5).setCellFormula("F8+F9+F10+F11+F12+F13+F14+F15+F16");
       row16.createCell((short)6).setCellFormula("G8+G9+G10+G11+G12+G13+G14+G15+G16");
       row16.createCell((short)7).setCellFormula("H8+H9+H10+H11+H12+H13+H14+H15+H16");
       row16.createCell((short)8).setCellFormula("I8+I9+I10+I11+I12+I13+I14+I15+I16");
       row16.createCell((short)9).setCellFormula("J8+J9+J10+J11+J12+J13+J14+J15+J16");
       row16.createCell((short)10).setCellFormula("K8+K9+K10+K11+K12+K13+K14+K15+K16");
       row16.createCell((short)11).setCellFormula("L8+L9+L10+L11+L12+L13+L14+L15+L16");
       row16.createCell((short)12).setCellFormula("M8+EM9+M10+M11+M12+M13+M14+M15+M16");
       row16.createCell((short)13).setCellFormula("N8+N9+N10+N11+N12+N13+N14+N15+N16");
       //Rows for Table B2(sheet4)
       HSSFRow row35=sheet4.createRow((short)1);
       HSSFRow row36=sheet4.createRow((short)2);
       HSSFRow row37=sheet4.createRow((short)3);
       HSSFRow row38=sheet4.createRow((short)4);
       HSSFRow row39=sheet4.createRow((short)5);
       HSSFRow row39a=sheet4.createRow((short)7);
       HSSFRow row39b=sheet4.createRow((short)8);
       HSSFRow row39c=sheet4.createRow((short)9);
       HSSFRow row40=sheet4.createRow((short)6);
       HSSFRow row41=sheet4.createRow((short)16);
       //values for registration centres(Table B2)
       row39a.createCell((short)0).setCellValue(""+cnt2rg);
       row39b.createCell((short)0).setCellValue(""+cnt3rg);
       row39c.createCell((short)0).setCellValue(""+cnt4rg);
       //Rows for Table B3(sheet5)
       HSSFRow row42=sheet5.createRow((short)1);
       HSSFRow row43=sheet5.createRow((short)2);
       HSSFRow row44=sheet5.createRow((short)3);
       HSSFRow row45=sheet5.createRow((short)4);
       HSSFRow row46=sheet5.createRow((short)5);
       HSSFRow row47=sheet5.createRow((short)6);
       HSSFRow row48=sheet5.createRow((short)16);
       HSSFRow row49=sheet5.createRow((short)18);
       sheet4.setColumnWidth(0,5500);
       //Columns for Table B2(sheet4)
       HSSFCell cell35=row35.createCell(4);
       cell35.setCellValue("TABLE B2");
       cell35.setCellStyle(style);
       HSSFCell cell36=row36.createCell(4);
       cell36.setCellValue("LIVE BIRTH BY BIRTH ORDER");
       cell36.setCellStyle(style);
       HSSFCell cell37=row37.createCell(0);
       cell37.setCellValue("L.G.A");
       cell37.setCellStyle(style);
       HSSFCell cellrow37a=row37.createCell(1);
       cellrow37a.setCellValue(""+lg);
       HSSFCell cell37b=row37.createCell(7);
       cell37b.setCellValue("MONTH");
       cell37b.setCellStyle(style);
       HSSFCell cell37c=row37.createCell(8);
       cell37c.setCellStyle(style);
       HSSFCell cell38=row38.createCell(0);
       cell38.setCellValue("STATE");
       cell38.setCellStyle(style);
       HSSFCell cell38a=row38.createCell(1);
       cell38a.setCellValue(""+st);
       HSSFCell cell38b=row38.createCell(7);
       cell38b.setCellValue("YEAR");
       cell38b.setCellStyle(style);
       HSSFCell cell38c=row38.createCell(8);
       cell38c.setCellValue(""+yr);
       HSSFCell cell39=row39.createCell(0);
       cell39.setCellValue("REGISTRATION CENTRE");
       cell39.setCellStyle(style);
       cell39.setCellStyle(style1);
       HSSFCell cell39a=row39.createCell(1);
       cell39a.setCellValue("Total Birth");
       cell39a.setCellStyle(style1);
       HSSFCell cell39b=row39.createCell(2);
       cell39b.setCellValue("1");
       sheet4.setColumnWidth(2, 1500);
       cell39b.setCellStyle(style1);
       HSSFCell cell39c=row39.createCell(3);
       cell39c.setCellValue("2");
       sheet4.setColumnWidth(3, 1500);
       cell39c.setCellStyle(style1);
       HSSFCell cell39d=row39.createCell(4);
       cell39d.setCellValue("3");
       sheet4.setColumnWidth(4, 1500);
       cell39d.setCellStyle(style1);
       HSSFCell cell39e=row39.createCell(5);
       cell39e.setCellValue("BIRTH4");
       cell39e.setCellStyle(style1);
       HSSFCell cell39f=row39.createCell(6);
       cell39f.setCellValue("ORDER5");
       cell39f.setCellStyle(style1);
       HSSFCell cell39g=row39.createCell(7);
       cell39g.setCellValue("6");
       sheet4.setColumnWidth(6, 2500);
       cell39g.setCellStyle(style1);
       HSSFCell cell39h=row39.createCell(8);
       cell39h.setCellValue("7");
       sheet4.setColumnWidth(8, 1500);
       cell39h.setCellStyle(style1);
       HSSFCell cell39i=row39.createCell(9);
       cell39i.setCellValue("8");
       sheet4.setColumnWidth(9, 1500);
       cell39i.setCellStyle(style1);
       HSSFCell cell39j=row39.createCell(10);
       cell39j.setCellValue("9");
       sheet4.setColumnWidth(10, 1500);
       cell39j.setCellStyle(style1);
       HSSFCell cell39k=row39.createCell(11);
       cell39k.setCellValue("10+");
       sheet4.setColumnWidth(11, 1500);
       cell39k.setCellStyle(style1);
       HSSFCell cell40=row40.createCell(0);
       cell40.setCellValue(""+rg);
       cell40.setCellStyle(style2);
       row40.createCell((short)1).setCellValue(""+od1210);
       row40.createCell((short)2).setCellValue(""+od210);
       row40.createCell((short)3).setCellValue(""+od310);
       row40.createCell((short)4).setCellValue(""+od410);
       row40.createCell((short)5).setCellValue(""+od510);
       row40.createCell((short)6).setCellValue(""+od610);
       row40.createCell((short)7).setCellValue(""+od710);
       row40.createCell((short)8).setCellValue(""+od810);
       row40.createCell((short)9).setCellValue(""+od910);
       row40.createCell((short)10).setCellValue(""+od1010);
       row40.createCell((short)11).setCellValue(""+od1110);
 
       row39a.createCell((short)1).setCellValue(""+odc21210);
       row39a.createCell((short)2).setCellValue(""+odc2210);
       row39a.createCell((short)3).setCellValue(""+odc2310);
       row39a.createCell((short)4).setCellValue(""+odc2410);
       row39a.createCell((short)5).setCellValue(""+odc2510);
       row39a.createCell((short)6).setCellValue(""+odc2610);
       row39a.createCell((short)7).setCellValue(""+odc2710);
       row39a.createCell((short)8).setCellValue(""+odc2810);
       row39a.createCell((short)9).setCellValue(""+odc2910);
       row39a.createCell((short)10).setCellValue(""+odc21010);
       row39a.createCell((short)11).setCellValue(""+odc21110);
 
       row39b.createCell((short)1).setCellValue(""+odc31210);
       row39b.createCell((short)2).setCellValue(""+odc3210);
       row39b.createCell((short)3).setCellValue(""+odc3310);
       row39b.createCell((short)4).setCellValue(""+odc3410);
       row39b.createCell((short)5).setCellValue(""+odc3510);
       row39b.createCell((short)6).setCellValue(""+odc3610);
       row39b.createCell((short)7).setCellValue(""+odc3710);
       row39b.createCell((short)8).setCellValue(""+odc3810);
       row39b.createCell((short)9).setCellValue(""+odc3910);
       row39b.createCell((short)10).setCellValue(""+odc31010);
       row39b.createCell((short)11).setCellValue(""+odc31110);
 
       row41.createCell((short)0).setCellValue("Date______________");
       row41.createCell((short)5).setCellValue("Signature of Deputy Chief Registrar_____________________");
       //Columns for table B3(sheet5)
       sheet5.setColumnWidth(0, 5500);
       HSSFCell cell42=row42.createCell(4);
       cell42.setCellValue("TABLE B3");
       cell42.setCellStyle(style);
       HSSFCell cell43=row43.createCell(4);
       cell43.setCellValue("LIVE BIRTH BY AGE OF MOTHER");
       cell43.setCellStyle(style);
       cell43.setCellStyle(style);
       HSSFCell cell44=row44.createCell(0);
       cell44.setCellValue("L.G.A:");
       cell44.setCellStyle(style3);
       HSSFCell cell44a=row44.createCell(7);
       cell44a.setCellValue("MONTH:");
       cell44a.setCellStyle(style);
       HSSFCell cell45=row45.createCell(0);
       cell45.setCellValue("STATE:");
       cell45.setCellStyle(style3);
       HSSFCell cell45a=row45.createCell(7);
       cell45a.setCellValue("YEAR");
       cell45a.setCellStyle(style3);
       HSSFCell cell46=row46.createCell(0);
       cell46.setCellValue("REGISTRATION CENTRE");
       cell46.setCellStyle(style3);
       HSSFCell cell46a=row46.createCell(1);
       cell46a.setCellValue("Below 15");
       cell46a.setCellStyle(style1);
       HSSFCell cell46b=row46.createCell(2);
       cell46b.setCellValue("15-19");
       cell46b.setCellStyle(style1);
       HSSFCell cell46c=row46.createCell(3);
       cell46c.setCellValue("20-24");
       cell46c.setCellStyle(style1);
       HSSFCell cell46d=row46.createCell(4);
       cell46d.setCellValue("AGE25-29");
       sheet5.setColumnWidth(4, 1800);
       cell46d.setCellStyle(style1);
       HSSFCell cell46e=row46.createCell(5);
       cell46e.setCellValue("OF 30-34");
       cell46e.setCellStyle(style1);
       sheet5.setColumnWidth(5, 1800);
       HSSFCell cell46f=row46.createCell(6);
       cell46f.setCellValue("MOTHER 35-39");
       cell46f.setCellStyle(style1);
       sheet5.setColumnWidth(6, 2900);
       HSSFCell cell46g=row46.createCell(7);
       cell46g.setCellValue("40-44");
       cell46g.setCellStyle(style1);
       HSSFCell cell46h=row46.createCell(8);
       cell46h.setCellValue("45-49");
       cell46h.setCellStyle(style1);
       HSSFCell cell46i=row46.createCell(9);
       cell46i.setCellValue("50+");
       cell46i.setCellStyle(style1);
       HSSFCell cell47=row47.createCell(0);
       cell47.setCellValue(""+rg);
       cell47.setCellStyle(style2);
       row47.createCell((short)1).setCellValue(""+od11);
       row47.createCell((short)2).setCellValue(""+od121);
       row47.createCell((short)3).setCellValue(""+od122);
       row47.createCell((short)4).setCellValue(""+od123);
       row47.createCell((short)5).setCellValue(""+od124);
       row47.createCell((short)6).setCellValue(""+od125);
       row47.createCell((short)7).setCellValue(""+od126);
       row47.createCell((short)8).setCellValue(""+od127);
       row47.createCell((short)9).setCellValue(""+od128);
       row46.setHeight((short)600);
       HSSFCell cell48=row48.createCell(0);
       cell48.setCellValue("LGA TOTAL");
       cell48.setCellStyle(style3);
       row48.createCell((short)1).setCellFormula("B7+B8+B9+B10+B11+B12+B13+B14+B15+B16");
       row48.createCell((short)2).setCellFormula("C7+C8+C9+C10+C11+C12+C13+C14+C15+C16");
       row48.createCell((short)3).setCellFormula("D7+D8+D9+D10+D11+D12+D13+D14+D15+D16");
       row48.createCell((short)4).setCellFormula("E7+E8+E9+E10+E11+E12+E13+E14+E15+E16");
       row48.createCell((short)5).setCellFormula("F7+F8+F9+F10+F11+F12+F13+F14+F15+F16");
       row48.createCell((short)6).setCellFormula("G7+G8+G9+G10+G11+G12+G13+G14+G15+G16");
       row48.createCell((short)7).setCellFormula("H7+H8+H9+H10+H11+H12+H13+H14+H15+H16");
       row48.createCell((short)8).setCellFormula("I7+I8+I9+I10+I11+I12+I13+I14+I15+I16");
       row48.createCell((short)9).setCellFormula("J7+J8+J9+J10+J11+J12+J13+J14+J15+J16");
       row49.createCell((short)0).setCellValue("Date:________________");
       row49.createCell((short)3).setCellValue("Signature of Deputy Chief Registrar:________________________");
       //Rows for TableB5(sheet6)
       HSSFRow row50=sheet6.createRow(1);
       HSSFRow row51=sheet6.createRow(2);
       HSSFRow row52=sheet6.createRow(3);
       HSSFRow row53=sheet6.createRow(4);
       HSSFRow row54=sheet6.createRow(5);
       HSSFRow row55=sheet6.createRow(6);
       //Rows for other centres
       HSSFRow row55a=sheet6.createRow(7);
       HSSFRow row55b=sheet6.createRow(8);
       HSSFRow row55c=sheet6.createRow(9);
 
       HSSFRow row56=sheet6.createRow(16);
       HSSFRow row57=sheet6.createRow(18);
 
       HSSFCell cell50=row50.createCell(4);
       //Inserting values in cells
       cell50.setCellValue("TABLE B5");
       cell50.setCellStyle(style);
       HSSFCell cell51=row51.createCell(4);
       cell51.setCellValue("LIVE BIRTHS BY LEVEL OF EDUCATION OF MOTHER");
       cell51.setCellStyle(style);
       HSSFCell cell52=row52.createCell(0);
       HSSFCell cell52b=row52.createCell(1);
       cell52.setCellValue("L.G.A");
       cell52b.setCellValue(""+lg);
       HSSFCell cell52a=row52.createCell(7);
       HSSFCell cell52c=row52.createCell(8);
       cell52a.setCellValue("MONTH:");
       cell52c.setCellValue(""+mnt);
       cell52a.setCellStyle(style);
       cell52.setCellStyle(style3);
       sheet6.setColumnWidth(0, 5500);
       HSSFCell cell53=row53.createCell(0);
       HSSFCell cell53b=row53.createCell(1);
       cell53.setCellValue("STATE:");
       cell53b.setCellValue(""+st);
       cell53.setCellStyle(style3);
       HSSFCell cell53a=row53.createCell(7);
       HSSFCell cell53c=row53.createCell(8);
       cell53a.setCellValue("YEAR:");
       cell53c.setCellValue(""+yr);
       cell53a.setCellStyle(style1);
       HSSFCell cell54=row54.createCell(0);
       cell54.setCellValue("RGISTRATION CENTRE");
       cell54.setCellStyle(style3);
       HSSFCell cell54a=row54.createCell(1);
       cell54a.setCellValue("Koranic");
       cell54a.setCellStyle(style2);
       sheet6.setColumnWidth(1, 1800);
       HSSFCell cell54b=row54.createCell(2);
       cell54b.setCellValue("Illitrate");
       sheet6.setColumnWidth(2, 1800);
       cell54b.setCellStyle(style2);
       HSSFCell cell54c=row54.createCell(3);
       cell54c.setCellValue("Primary");
       cell54c.setCellStyle(style2);
       sheet6.setColumnWidth(3, 1900);
       HSSFCell cell54d=row54.createCell(4);
       cell54d.setCellValue("Secondary");
       cell54d.setCellStyle(style4);
       sheet6.setColumnWidth(4, 2500);
       HSSFCell cell54e=row54.createCell(5);
       cell54e.setCellValue("Polytechnic or other Technical Levels");
       cell54e.setCellStyle(style2);
       sheet6.setColumnWidth(5, 2700);
       HSSFCell cell54f=row54.createCell(6);
       cell54f.setCellValue("University Degree and Above");
       cell54f.setCellStyle(style2);
       sheet6.setColumnWidth(6, 3000);
       HSSFCell cell54g=row54.createCell(7);
       cell54g.setCellValue("Others");
       cell54g.setCellStyle(style2);
       HSSFCell cell54h=row54.createCell(8);
       cell54h.setCellValue("No Education");
       cell54h.setCellStyle(style2);
       row55.createCell((short)0).setCellValue(""+rg);
       row55.createCell((short)1).setCellValue(""+md2);
       row55.createCell((short)2).setCellValue(""+md3);
       row55.createCell((short)3).setCellValue(""+md4);
       row55.createCell((short)4).setCellValue(""+md5);
       row55.createCell((short)5).setCellValue(""+md6);
       row55.createCell((short)6).setCellValue(""+md7);
       row55.createCell((short)7).setCellValue(""+md8);
       row55.createCell((short)8).setCellValue(""+md9);
       //Values for other centre
       row55a.createCell((short)1).setCellValue(""+md22);
       row55a.createCell((short)2).setCellValue(""+md23);
       row55a.createCell((short)3).setCellValue(""+md24);
       row55a.createCell((short)4).setCellValue(""+md25);
       row55a.createCell((short)5).setCellValue(""+md26);
       row55a.createCell((short)6).setCellValue(""+md27);
       row55a.createCell((short)7).setCellValue(""+md28);
       row55a.createCell((short)8).setCellValue(""+md29);
 
       row55b.createCell((short)1).setCellValue(""+md32);
       row55b.createCell((short)2).setCellValue(""+md33);
       row55b.createCell((short)3).setCellValue(""+md34);
       row55b.createCell((short)4).setCellValue(""+md35);
       row55b.createCell((short)5).setCellValue(""+md36);
       row55b.createCell((short)6).setCellValue(""+md37);
       row55b.createCell((short)7).setCellValue(""+md38);
       row55b.createCell((short)8).setCellValue(""+md39);
 
       row55c.createCell((short)1).setCellValue(""+md42);
       row55c.createCell((short)2).setCellValue(""+md43);
       row55c.createCell((short)3).setCellValue(""+md44);
       row55c.createCell((short)4).setCellValue(""+md45);
       row55c.createCell((short)5).setCellValue(""+md46);
       row55c.createCell((short)6).setCellValue(""+md47);
       row55c.createCell((short)7).setCellValue(""+md48);
       row55c.createCell((short)8).setCellValue(""+md49);
 
       HSSFCell cell56=row56.createCell(0);
       cell56.setCellValue("LGA TOTAL");
       cell56.setCellStyle(style3);
       row56.createCell((short)1).setCellFormula("B7+B8+B9+B10");
       row56.createCell((short)2).setCellFormula("C7+C8+C9+C10");
       row56.createCell((short)3).setCellFormula("D7+D8+D9+D10");
       row56.createCell((short)4).setCellFormula("E7+E8+E9+E10");
       row56.createCell((short)5).setCellFormula("F7+F8+F9+F10");
       row56.createCell((short)6).setCellFormula("G7+G8+G9+G10");
       row56.createCell((short)7).setCellFormula("H7+H8+H9+H10");
       row56.createCell((short)8).setCellFormula("I7+I8+I9+I10");
       HSSFCell cell57=row57.createCell(0);
       cell57.setCellValue("Date:_________________");
       row57.createCell((short)4).setCellValue("Signature of Deputy Registrar:_________________________");
       //Rows for Table B6(sheet7)
       HSSFRow row58=sheet7.createRow(1);
       HSSFRow row59=sheet7.createRow(2);
       HSSFRow row60=sheet7.createRow(3);
       HSSFRow row61=sheet7.createRow(4);
       HSSFRow row62=sheet7.createRow(5);
       HSSFRow row63=sheet7.createRow(6);
       //Rows for other cntres
       HSSFRow row63a=sheet7.createRow(7);
       HSSFRow row63b=sheet7.createRow(8);
       HSSFRow row63c=sheet7.createRow(9);
 
       HSSFRow row64=sheet7.createRow(16);
       HSSFRow row65=sheet7.createRow(18);
 
       HSSFCell cell58=row58.createCell(4);
       cell58.setCellValue("TABLE B6");
       cell58.setCellStyle(style);
       HSSFCell cell59=row59.createCell(4);
       cell59.setCellValue("LIVE BIRTHS BY LEVEL OF EDUCATION OF FATHER");
       cell59.setCellStyle(style);
       HSSFCell cell60=row60.createCell(0);
       HSSFCell cell60b=row60.createCell(1);
       cell60.setCellValue("L.G.A");
       cell60b.setCellValue(""+lg);
       HSSFCell cell60a=row60.createCell(7);
       HSSFCell cell60c=row60.createCell(8);
       cell60a.setCellValue("MONTH:");
       cell60c.setCellValue(""+mnt);
       cell60a.setCellStyle(style);
       cell60.setCellStyle(style3);
       sheet7.setColumnWidth(0, 5500);
       HSSFCell cell61=row61.createCell(0);
       HSSFCell cell61b=row61.createCell(1);
       cell61.setCellValue("STATE:");
       cell61b.setCellValue(""+st);
       cell61.setCellStyle(style3);
       HSSFCell cell61a=row61.createCell(7);
       HSSFCell cell61c=row61.createCell(8);
       cell61a.setCellValue("YEAR:");
       cell61c.setCellValue(""+yr);
       cell61a.setCellStyle(style1);
       HSSFCell cell62=row62.createCell(0);
       cell62.setCellValue("RGISTRATION CENTRE");
       cell62.setCellStyle(style3);
       HSSFCell cell62a=row62.createCell(1);
       cell62a.setCellValue("Koranic");
       cell62a.setCellStyle(style2);
       sheet7.setColumnWidth(1, 1800);
       HSSFCell cell62b=row62.createCell(2);
       cell62b.setCellValue("Illitrate");
       sheet7.setColumnWidth(2, 1800);
       cell62b.setCellStyle(style2);
       HSSFCell cell62c=row62.createCell(3);
       cell62c.setCellValue("Primary");
       cell62c.setCellStyle(style2);
       sheet7.setColumnWidth(3, 1900);
       HSSFCell cell62d=row62.createCell(4);
       cell62d.setCellValue("Secondary");
       cell62d.setCellStyle(style4);
       sheet7.setColumnWidth(4, 2500);
       HSSFCell cell62e=row62.createCell(5);
       cell62e.setCellValue("Polytechnic or other Technical Levels");
       cell62e.setCellStyle(style2);
       sheet7.setColumnWidth(5, 2700);
       HSSFCell cell62f=row62.createCell(6);
       cell62f.setCellValue("University Degree and Above");
       cell62f.setCellStyle(style2);
       sheet7.setColumnWidth(6, 3000);
       HSSFCell cell62g=row62.createCell(7);
       cell62g.setCellValue("Others");
       cell62g.setCellStyle(style2);
       HSSFCell cell62h=row62.createCell(8);
       cell62h.setCellValue("No Education");
       cell62h.setCellStyle(style2);
       row63.createCell((short)0).setCellValue(""+rg);
       row63.createCell((short)1).setCellValue(""+fd2);
       row63.createCell((short)2).setCellValue(""+fd3);
       row63.createCell((short)3).setCellValue(""+fd4);
       row63.createCell((short)4).setCellValue(""+fd5);
       row63.createCell((short)5).setCellValue(""+fd6);
       row63.createCell((short)6).setCellValue(""+fd7);
       row63.createCell((short)7).setCellValue(""+fd8);
       row63.createCell((short)8).setCellValue(""+fd9);
       //Values for other centres
       row63a.createCell((short)1).setCellValue(""+fd22);
       row63a.createCell((short)2).setCellValue(""+fd23);
       row63a.createCell((short)3).setCellValue(""+fd24);
       row63a.createCell((short)4).setCellValue(""+fd25);
       row63a.createCell((short)5).setCellValue(""+fd26);
       row63a.createCell((short)6).setCellValue(""+fd27);
       row63a.createCell((short)7).setCellValue(""+fd28);
       row63a.createCell((short)8).setCellValue(""+fd29);
 
       row63b.createCell((short)1).setCellValue(""+fd32);
       row63b.createCell((short)2).setCellValue(""+fd33);
       row63b.createCell((short)3).setCellValue(""+fd34);
       row63b.createCell((short)4).setCellValue(""+fd35);
       row63b.createCell((short)5).setCellValue(""+fd36);
       row63b.createCell((short)6).setCellValue(""+fd37);
       row63b.createCell((short)7).setCellValue(""+fd38);
       row63b.createCell((short)8).setCellValue(""+fd39);
 
       row63c.createCell((short)1).setCellValue(""+fd42);
       row63c.createCell((short)2).setCellValue(""+fd43);
       row63c.createCell((short)3).setCellValue(""+fd44);
       row63c.createCell((short)4).setCellValue(""+fd45);
       row63c.createCell((short)5).setCellValue(""+fd46);
       row63c.createCell((short)6).setCellValue(""+fd47);
       row63c.createCell((short)7).setCellValue(""+fd48);
       row63c.createCell((short)8).setCellValue(""+fd49);
 
       HSSFCell cell64=row64.createCell(0);
       cell64.setCellValue("LGA TOTAL");
       cell64.setCellStyle(style3);
       row64.createCell((short)1).setCellFormula("B7+B8+B9+B10");
       row64.createCell((short)2).setCellFormula("C7+C8+C9+C10");
       row64.createCell((short)3).setCellFormula("D7+D8+D9+D10");
       row64.createCell((short)4).setCellFormula("E7+E8+E9+E10");
       row64.createCell((short)5).setCellFormula("F7+F8+F9+F10");
       row64.createCell((short)6).setCellFormula("G7+G8+G9+G10");
       row64.createCell((short)7).setCellFormula("H7+H8+H9+H10");
       row64.createCell((short)8).setCellFormula("I7+I8+I9+I10");
       HSSFCell cell65=row65.createCell(0);
       cell65.setCellValue("Date:_________________");
       row65.createCell((short)4).setCellValue("Signature of Deputy Registrar:_________________________");
       FileOutputStream fileOut =  new FileOutputStream(file);
       wb.write(fileOut);
       fileOut.close();
       JOptionPane.showMessageDialog(null,"Your Table has been created!");
 
        }
                }
        catch ( Exception ex ) {
    JOptionPane.showMessageDialog(null, "The file is been used by another process\n plesae close the excel file and try again"+ex);
 
               }
                }
            }
       });
       }
 
    public void actionPerformed(ActionEvent e){
    if(e.getSource()==cntL1){
        cnt1.doClick();;
        cnt2.setSelected(false);
        cnt3.setSelected(false);
        cnt4.setSelected(false);
        cnt5.setSelected(false);
        reg.setVisible(true);
    }
    else if(e.getSource()==cntL2){
        cnt2.doClick();
        cnt1.setSelected(false);
        cnt3.setSelected(false);
        cnt4.setSelected(false);
        cnt5.setSelected(false);
        cnt2reg.setVisible(true);
        reg.setVisible(true);
        Centre ctre=new Centre();
        dispose();
 
    }
    else if(e.getSource()==cntL3){
        cnt3.doClick();
        cnt1.setSelected(false);
        cnt2.setSelected(false);
        cnt4.setSelected(false);
        cnt5.setSelected(false);
    }
    else if(e.getSource()==cntL4){
        cnt4.doClick();
        cnt1.setSelected(false);
        cnt2.setSelected(false);
        cnt3.setSelected(false);
        cnt5.setSelected(false);
    }
    else if(e.getSource()==cntL5){
        cnt5.doClick();
        cnt1.setSelected(false);
        cnt2.setSelected(false);
        cnt3.setSelected(false);
        cnt4.setSelected(false);
 
    }
    }
 
}


2. second file

package vrdtable;
 
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
 
 class Centre extends JFrame
            implements ActionListener{
    VRDTable tab1=new VRDTable();
     JTextField regC1=new JTextField();
     JTextField regC2=new JTextField();
     JTextField regC3=new JTextField();
     JTextField regC4=new JTextField();
 JTextField place=new JTextField("0");
 JTextField age=new JTextField("0");
 JTextField fedu=new JTextField("0");
 JTextField medu=new JTextField("0");
 
 JTextField sex=new JTextField("0");
 JTextField cntsex2=new JTextField("0");
 JTextField cntsex3=new JTextField("0");
 JTextField cntsex4=new JTextField("0");
 
 JTextField cntplace2=new JTextField("0");
 JTextField cntplace3=new JTextField("0");
 JTextField cntplace4=new JTextField("0");
 JTextField cntplace5=new JTextField("0");
 JTextField cntplace6=new JTextField("0");
 JTextField cntplace7=new JTextField("0");
 
  JTextField cntmedu2=new JTextField("0");
  JTextField cntmedu3=new JTextField("0");
  JTextField cntmedu4=new JTextField("0");
  JTextField cntmedu5=new JTextField("0");
  JTextField cntmedu6=new JTextField("0");
  JTextField cntmedu7=new JTextField("0");
  JTextField cntmedu8=new JTextField("0");
  JTextField cntmedu9=new JTextField("0");
 
  JTextField cntfedu2=new JTextField("0");
  JTextField cntfedu3=new JTextField("0");
  JTextField cntfedu4=new JTextField("0");
  JTextField cntfedu5=new JTextField("0");
  JTextField cntfedu6=new JTextField("0");
  JTextField cntfedu7=new JTextField("0");
  JTextField cntfedu8=new JTextField("0");
  JTextField cntfedu9=new JTextField("0");
 
  JTextField order=new JTextField("0");
  JTextField order1=new JTextField("0");
  JTextField order2=new JTextField("0");
  JTextField order3=new JTextField("0");
  JTextField order4=new JTextField("0");
  JTextField order5=new JTextField("0");
  JTextField order6=new JTextField("0");
  JTextField order7=new JTextField("0");
  JTextField order8=new JTextField("0");
  JTextField order9=new JTextField("0");
  JTextField order10=new JTextField("0");
  JTextField order11=new JTextField("0");
 
  JTextField order21=new JTextField("0");
  JTextField order31=new JTextField("0");
  JTextField order41=new JTextField("0");
  JTextField order51=new JTextField("0");
  JTextField order61=new JTextField("0");
  JTextField order71=new JTextField("0");
  JTextField order81=new JTextField("0");
  JTextField order91=new JTextField("0");
  JTextField order101=new JTextField("0");
  JTextField order111=new JTextField("0");
  JTextField order121=new JTextField("0");
 
  JTextField order22=new JTextField("0");
  JTextField order32=new JTextField("0");
  JTextField order42=new JTextField("0");
  JTextField order52=new JTextField("0");
  JTextField order62=new JTextField("0");
  JTextField order72=new JTextField("0");
  JTextField order82=new JTextField("0");
  JTextField order92=new JTextField("0");
  JTextField order102=new JTextField("0");
  JTextField order112=new JTextField("0");
  JTextField order122=new JTextField("0");
 
  JTextField order23=new JTextField("0");
  JTextField order33=new JTextField("0");
  JTextField order43=new JTextField("0");
  JTextField order53=new JTextField("0");
  JTextField order63=new JTextField("0");
  JTextField order73=new JTextField("0");
  JTextField order83=new JTextField("0");
  JTextField order93=new JTextField("0");
  JTextField order103=new JTextField("0");
  JTextField order113=new JTextField("0");
  JTextField order123=new JTextField("0");
 
  JTextField order24=new JTextField("0");
  JTextField order34=new JTextField("0");
  JTextField order44=new JTextField("0");
  JTextField order54=new JTextField("0");
  JTextField order64=new JTextField("0");
  JTextField order74=new JTextField("0");
  JTextField order84=new JTextField("0");
  JTextField order94=new JTextField("0");
  JTextField order104=new JTextField("0");
  JTextField order114=new JTextField("0");
  JTextField order124=new JTextField("0");
 
  JTextField order25=new JTextField("0");
  JTextField order35=new JTextField("0");
  JTextField order45=new JTextField("0");
  JTextField order55=new JTextField("0");
  JTextField order65=new JTextField("0");
  JTextField order75=new JTextField("0");
  JTextField order85=new JTextField("0");
  JTextField order95=new JTextField("0");
  JTextField order105=new JTextField("0");
  JTextField order115=new JTextField("0");
  JTextField order125=new JTextField("0");
 
  JTextField order26=new JTextField("0");
  JTextField order36=new JTextField("0");
  JTextField order46=new JTextField("0");
  JTextField order56=new JTextField("0");
  JTextField order66=new JTextField("0");
  JTextField order76=new JTextField("0");
  JTextField order86=new JTextField("0");
  JTextField order96=new JTextField("0");
  JTextField order106=new JTextField("0");
  JTextField order116=new JTextField("0");
  JTextField order126=new JTextField("0");
 
  JTextField order27=new JTextField("0");
  JTextField order37=new JTextField("0");
  JTextField order47=new JTextField("0");
  JTextField order57=new JTextField("0");
  JTextField order67=new JTextField("0");
  JTextField order77=new JTextField("0");
  JTextField order87=new JTextField("0");
  JTextField order97=new JTextField("0");
  JTextField order107=new JTextField("0");
  JTextField order117=new JTextField("0");
  JTextField order127=new JTextField("0");
 
  JTextField order28=new JTextField("0");
  JTextField order38=new JTextField("0");
  JTextField order48=new JTextField("0");
  JTextField order58=new JTextField("0");
  JTextField order68=new JTextField("0");
  JTextField order78=new JTextField("0");
  JTextField order88=new JTextField("0");
  JTextField order98=new JTextField("0");
  JTextField order108=new JTextField("0");
  JTextField order118=new JTextField("0");
  JTextField order128=new JTextField("0");
 
  JTextField order29=new JTextField("0");
  JTextField order39=new JTextField("0");
  JTextField order49=new JTextField("0");
  JTextField order59=new JTextField("0");
  JTextField order69=new JTextField("0");
  JTextField order79=new JTextField("0");
  JTextField order89=new JTextField("0");
  JTextField order99=new JTextField("0");
  JTextField order109=new JTextField("0");
  JTextField order119=new JTextField("0");
  JTextField order129=new JTextField("0");
 
  JTextField order210=new JTextField("0");
  JTextField order310=new JTextField("0");
  JTextField order410=new JTextField("0");
  JTextField order510=new JTextField("0");
  JTextField order610=new JTextField("0");
  JTextField order710=new JTextField("0");
  JTextField order810=new JTextField("0");
  JTextField order910=new JTextField("0");
  JTextField order1010=new JTextField("0");
  JTextField order1110=new JTextField("0");
  JTextField order1210=new JTextField("0");
 
  JTextField orderc2210=new JTextField("0");
  JTextField orderc2310=new JTextField("0");
  JTextField orderc2410=new JTextField("0");
  JTextField orderc2510=new JTextField("0");
  JTextField orderc2610=new JTextField("0");
  JTextField orderc2710=new JTextField("0");
  JTextField orderc2810=new JTextField("0");
  JTextField orderc2910=new JTextField("0");
  JTextField orderc21010=new JTextField("0");
  JTextField orderc21110=new JTextField("0");
  JTextField orderc21210=new JTextField("0");
 
  JTextField orderc3210=new JTextField("0");
  JTextField orderc3310=new JTextField("0");
  JTextField orderc3410=new JTextField("0");
  JTextField orderc3510=new JTextField("0");
  JTextField orderc3610=new JTextField("0");
  JTextField orderc3710=new JTextField("0");
  JTextField orderc3810=new JTextField("0");
  JTextField orderc3910=new JTextField("0");
  JTextField orderc31010=new JTextField("0");
  JTextField orderc31110=new JTextField("0");
  JTextField orderc31210=new JTextField("0");
 
  JButton proc=new JButton("Process");
  JButton proc2=new JButton("Process2");
  JCheckBox cnt1=new JCheckBox();
  JCheckBox cnt2=new JCheckBox();
  JCheckBox cnt3=new JCheckBox();
  JCheckBox cnt4=new JCheckBox();
  JCheckBox cnt5=new JCheckBox();
  JButton cntL1=new JButton("Centre1");
  JButton cntL2=new JButton("Centre2");
  JButton cntL3=new JButton("Centre3");
  JButton cntL4=new JButton("Centre4");
  JButton cntL5=new JButton("Centre5");
  JPanel panel=new JPanel();
    public static void main(String[] args) {
       Centre ctr=new Centre();
    }
    public Centre()
    {
 
      super("LIVE BIRTH TABLE GENERATOR");
       Color cl=Color.PINK;
       panel.setBackground(cl);
       setSize(600,700);
       panel.setLayout(null);
       cntL1.setBounds(250,10,100,20);
       cntL2.setBounds(250,30,100,20);
       cntL3.setBounds(250,50,100,20);
       cntL4.setBounds(250,70,100,20);
       cntL5.setBounds(250,90,100,20);
       cnt1.setBounds(350,10,20,20);
       cnt2.setBounds(350,30,20,20);
       cnt3.setBounds(350,50,20,20);
       cnt4.setBounds(350,70,20,20);
       cnt5.setBounds(350,90,20,20);
       JLabel sexLab2=new JLabel("Centre 2 Sex");
       sexLab2.setBounds(10,10,150,30);
       sex.setBounds(10,30,30,30);
       JLabel regCL1=new JLabel("Reistration Centre 1");
       JLabel regCL2=new JLabel("Reistration Centre 2");
       JLabel regCL3=new JLabel("Reistration Centre 3");
       JLabel regCL4=new JLabel("Reistration Centre 4");
       regCL1.setBounds(10,270,250,30);
       regC1.setBounds(10,300,250,30);
       regCL2.setBounds(10,330,250,30);
       regC2.setBounds(10,360,250,30);
       regCL3.setBounds(10,390,250,30);
       regC3.setBounds(10,420,250,30);
       regCL4.setBounds(10,450,250,30);
       regC4.setBounds(10,480,250,30);
       cntsex2.setBounds(60,30,30,30);
       cntsex3.setBounds(110,30,30,30);
       cntsex4.setBounds(160,30,30,30);
 
       JLabel placeLab2=new JLabel("Centre 2 Place");
       placeLab2.setBounds(10,50,150,30);
       place.setBounds(10,70,30,30);
       cntplace2.setBounds(60,70,30,30);
       cntplace3.setBounds(110,70,30,30);
       cntplace4.setBounds(160,70,30,30);
       cntplace5.setBounds(210,70,30,30);
       cntplace6.setBounds(260,70,30,30);
 
       JLabel meduLab2=new JLabel("Centre 2 Mother Education");
       meduLab2.setBounds(10,90,150,30);
       medu.setBounds(10,110,30,30);
       cntmedu2.setBounds(60,110,30,30);
       cntmedu3.setBounds(110,110,30,30);
       cntmedu4.setBounds(160,110,30,30);
       cntmedu5.setBounds(210,110,30,30);
       cntmedu6.setBounds(260,110,30,30);
       cntmedu7.setBounds(310,110,30,30);
       cntmedu8.setBounds(360,110,30,30);
       cntmedu9.setBounds(410,110,30,30);
 
       JLabel feduLab2=new JLabel("Centre 2 Father Education");
       feduLab2.setBounds(10,130,150,30);
       fedu.setBounds(10,150,30,30);
       cntfedu2.setBounds(60,150,30,30);
       cntfedu3.setBounds(110,150,30,30);
       cntfedu4.setBounds(160,150,30,30);
       cntfedu5.setBounds(210,150,30,30);
       cntfedu6.setBounds(260,150,30,30);
       cntfedu7.setBounds(310,150,30,30);
       cntfedu8.setBounds(360,150,30,30);
       cntfedu9.setBounds(410,150,30,30);
       JLabel ageL=new JLabel("Age of mother at birth");
       ageL.setBounds(10,170,150,30);
       age.setBounds(10,190,30,30);
       JLabel orderL=new JLabel("Birth order");
       orderL.setBounds(10,210,150,30);
       order.setBounds(10,240,30,30);
       proc.setBounds(80,520,100,30);
       proc2.setBounds(80,520,100,30);
       proc2.setVisible(false);
       tab1.setVisible(true);
 
       panel.add(cnt1);
       panel.add(cnt2);
       panel.add(cnt3);
       panel.add(cnt4);
       panel.add(cnt5);
       panel.add(cntL1);
       panel.add(cntL2);
       panel.add(cntL3);
       panel.add(cntL4);
       panel.add(cntL5);
       panel.add(regC1);
       panel.add(regCL1);
       panel.add(regC2);
       panel.add(regCL2);
       panel.add(regC3);
       panel.add(regCL3);
       panel.add(regC4);
       panel.add(regCL4);
       panel.add(sexLab2);
       panel.add(sex);
       panel.add(cntsex2);
       panel.add(cntsex3);
       panel.add(cntsex4);
 
       panel.add(place);
       panel.add(cntplace2);
       panel.add(cntplace3);
       panel.add(cntplace4);
       panel.add(cntplace5);
       panel.add(cntplace6);
       panel.add(placeLab2);
 
       panel.add(meduLab2);
       panel.add(medu);
       panel.add(cntmedu2);
       panel.add(cntmedu3);
       panel.add(cntmedu4);
       panel.add(cntmedu5);
       panel.add(cntmedu6);
       panel.add(cntmedu7);
       panel.add(cntmedu8);
       panel.add(cntmedu9);
 
       panel.add(feduLab2);
       panel.add(fedu);
       panel.add(cntfedu2);
       panel.add(cntfedu3);
       panel.add(cntfedu4);
       panel.add(cntfedu5);
       panel.add(cntfedu6);
       panel.add(cntfedu7);
       panel.add(cntfedu8);
       panel.add(cntfedu9);
       panel.add(age);
       panel.add(order);
       panel.add(ageL);
       panel.add(orderL);
       panel.add(proc);
        panel.add(proc2);
 
       cntL1.addActionListener(this);
       cntL2.addActionListener(this);
       cntL3.addActionListener(this);
       cntL4.addActionListener(this);
       cntL5.addActionListener(this);
       getContentPane().add(panel);
 
       setVisible(true);
       setResizable(true);
       proc.addActionListener(new ActionListener(){
           public void actionPerformed(ActionEvent e){
               if(cnt2.isSelected()){
                   String center2=regC2.getText();
                   tab1.cnt2reg.setText(""+center2);
                  try{
               //Processing sex
              String sx=sex.getText();
              String sx22=cntsex2.getText();//male counter
              String sx23=cntsex3.getText();//female counter
              String sx24=cntsex4.getText();//total counter
 
              int cntsxd=Integer.parseInt(sx);
              int cntsxd2=Integer.parseInt(sx22);//male counter
              int cntsxd3=Integer.parseInt(sx23);//female counter
              int cntsxd4=Integer.parseInt(sx23);//total counter
              //Processing place of birth
              String plac=place.getText();
              String plac22=cntplace2.getText();
              String plac23=cntplace3.getText();
              String plac24=cntplace4.getText();
              String plac25=cntplace5.getText();
              String plac26=cntplace6.getText();
 
              int pla=Integer.parseInt(plac);
              int cnt2pla2=Integer.parseInt(plac22);
              int cnt2pla3=Integer.parseInt(plac23);
              int cnt2pla4=Integer.parseInt(plac24);
              int cnt2pla5=Integer.parseInt(plac25);
              int cnt2pla6=Integer.parseInt(plac26);
              //Processing Birth order by age of Mother
              String ages=age.getText();
              int agd=Integer.parseInt(ages);
 
              String ord=order.getText();
              String ord1=tab1.order1.getText();
              String ord2=tab1.order2.getText();
              String ord3=tab1.order3.getText();
              String ord4=tab1.order4.getText();
              String ord5=tab1.order5.getText();
              String ord6=tab1.order6.getText();
              String ord7=tab1.order7.getText();
              String ord8=tab1.order8.getText();
              String ord9=tab1.order9.getText();
              String ord10=tab1.order10.getText();
              String ord11=tab1.order11.getText();
 
              int od=Integer.parseInt(ord);
              int od1=Integer.parseInt(ord1);
              int od2=Integer.parseInt(ord2);
              int od3=Integer.parseInt(ord3);
              int od4=Integer.parseInt(ord4);
              int od5=Integer.parseInt(ord5);
              int od6=Integer.parseInt(ord6);
              int od7=Integer.parseInt(ord7);
              int od8=Integer.parseInt(ord8);
              int od9=Integer.parseInt(ord9);
              int od10=Integer.parseInt(ord10);
              int od11=Integer.parseInt(ord11);
 
              String ord21=tab1.order21.getText();
              String ord31=tab1.order31.getText();
              String ord41=tab1.order41.getText();
              String ord51=tab1.order51.getText();
              String ord61=tab1.order61.getText();
              String ord71=tab1.order71.getText();
              String ord81=tab1.order81.getText();
              String ord91=tab1.order91.getText();
              String ord101=tab1.order101.getText();
              String ord111=tab1.order111.getText();
              String ord121=tab1.order121.getText();
 
              int od21=Integer.parseInt(ord21);
              int od31=Integer.parseInt(ord31);
              int od41=Integer.parseInt(ord41);
              int od51=Integer.parseInt(ord51);
              int od61=Integer.parseInt(ord61);
              int od71=Integer.parseInt(ord71);
              int od81=Integer.parseInt(ord81);
              int od91=Integer.parseInt(ord91);
              int od101=Integer.parseInt(ord101);
              int od111=Integer.parseInt(ord111);
              int od121=Integer.parseInt(ord121);
 
              String ord22=tab1.order22.getText();
              String ord32=tab1.order32.getText();
              String ord42=tab1.order42.getText();
              String ord52=tab1.order52.getText();
              String ord62=tab1.order62.getText();
              String ord72=tab1.order72.getText();
              String ord82=tab1.order82.getText();
              String ord92=tab1.order92.getText();
              String ord102=tab1.order102.getText();
              String ord112=tab1.order112.getText();
              String ord122=tab1.order122.getText();
 
              int od22=Integer.parseInt(ord22);
              int od32=Integer.parseInt(ord32);
              int od42=Integer.parseInt(ord42);
              int od52=Integer.parseInt(ord52);
              int od62=Integer.parseInt(ord62);
              int od72=Integer.parseInt(ord72);
              int od82=Integer.parseInt(ord82);
              int od92=Integer.parseInt(ord92);
              int od102=Integer.parseInt(ord102);
              int od112=Integer.parseInt(ord112);
              int od122=Integer.parseInt(ord122);
 
              String ord23=tab1.order23.getText();
              String ord33=tab1.order33.getText();
              String ord43=tab1.order43.getText();
              String ord53=tab1.order53.getText();
              String ord63=tab1.order63.getText();
              String ord73=tab1.order73.getText();
              String ord83=tab1.order83.getText();
              String ord93=tab1.order93.getText();
              String ord103=tab1.order103.getText();
              String ord113=tab1.order113.getText();
              String ord123=tab1.order123.getText();
 
              int od23=Integer.parseInt(ord23);
              int od33=Integer.parseInt(ord33);
              int od43=Integer.parseInt(ord43);
              int od53=Integer.parseInt(ord53);
              int od63=Integer.parseInt(ord63);
              int od73=Integer.parseInt(ord73);
              int od83=Integer.parseInt(ord83);
              int od93=Integer.parseInt(ord93);
              int od103=Integer.parseInt(ord103);
              int od113=Integer.parseInt(ord113);
              int od123=Integer.parseInt(ord123);
 
              String ord24=tab1.order24.getText();
              String ord34=tab1.order34.getText();
              String ord44=tab1.order44.getText();
              String ord54=tab1.order54.getText();
              String ord64=tab1.order64.getText();
              String ord74=tab1.order74.getText();
              String ord84=tab1.order84.getText();
              String ord94=tab1.order94.getText();
              String ord104=tab1.order104.getText();
              String ord114=tab1.order114.getText();
              String ord124=tab1.order124.getText();
 
              int od24=Integer.parseInt(ord24);
              int od34=Integer.parseInt(ord34);
              int od44=Integer.parseInt(ord44);
              int od54=Integer.parseInt(ord54);
              int od64=Integer.parseInt(ord64);
              int od74=Integer.parseInt(ord74);
              int od84=Integer.parseInt(ord84);
              int od94=Integer.parseInt(ord94);
              int od104=Integer.parseInt(ord104);
              int od114=Integer.parseInt(ord114);
              int od124=Integer.parseInt(ord124);
 
              String ord25=tab1.order25.getText();
              String ord35=tab1.order35.getText();
              String ord45=tab1.order45.getText();
              String ord55=tab1.order55.getText();
              String ord65=tab1.order65.getText();
              String ord75=tab1.order75.getText();
              String ord85=tab1.order85.getText();
              String ord95=tab1.order95.getText();
              String ord105=tab1.order105.getText();
              String ord115=tab1.order115.getText();
              String ord125=tab1.order125.getText();
 
              int od25=Integer.parseInt(ord25);
              int od35=Integer.parseInt(ord35);
              int od45=Integer.parseInt(ord45);
              int od55=Integer.parseInt(ord55);
              int od65=Integer.parseInt(ord65);
              int od75=Integer.parseInt(ord75);
              int od85=Integer.parseInt(ord85);
              int od95=Integer.parseInt(ord95);
              int od105=Integer.parseInt(ord105);
              int od115=Integer.parseInt(ord115);
              int od125=Integer.parseInt(ord125);
 
              String ord26=tab1.order26.getText();
              String ord36=tab1.order36.getText();
              String ord46=tab1.order46.getText();
              String ord56=tab1.order56.getText();
              String ord66=tab1.order66.getText();
              String ord76=tab1.order76.getText();
              String ord86=tab1.order86.getText();
              String ord96=tab1.order96.getText();
              String ord106=tab1.order106.getText();
              String ord116=tab1.order116.getText();
              String ord126=tab1.order126.getText();
 
              int od26=Integer.parseInt(ord26);
              int od36=Integer.parseInt(ord36);
              int od46=Integer.parseInt(ord46);
              int od56=Integer.parseInt(ord56);
              int od66=Integer.parseInt(ord66);
              int od76=Integer.parseInt(ord76);
              int od86=Integer.parseInt(ord86);
              int od96=Integer.parseInt(ord96);
              int od106=Integer.parseInt(ord106);
              int od116=Integer.parseInt(ord116);
              int od126=Integer.parseInt(ord126);
 
              String ord27=tab1.order27.getText();
              String ord37=tab1.order37.getText();
              String ord47=tab1.order47.getText();
              String ord57=tab1.order57.getText();
              String ord67=tab1.order67.getText();
              String ord77=tab1.order77.getText();
              String ord87=tab1.order87.getText();
              String ord97=tab1.order97.getText();
              String ord107=tab1.order107.getText();
              String ord117=tab1.order117.getText();
              String ord127=tab1.order127.getText();
 
              int od27=Integer.parseInt(ord27);
              int od37=Integer.parseInt(ord37);
              int od47=Integer.parseInt(ord47);
              int od57=Integer.parseInt(ord57);
              int od67=Integer.parseInt(ord67);
              int od77=Integer.parseInt(ord77);
              int od87=Integer.parseInt(ord87);
              int od97=Integer.parseInt(ord97);
              int od107=Integer.parseInt(ord107);
              int od117=Integer.parseInt(ord117);
              int od127=Integer.parseInt(ord127);
 
              String ord28=tab1.order28.getText();
              String ord38=tab1.order38.getText();
              String ord48=tab1.order48.getText();
              String ord58=tab1.order58.getText();
              String ord68=tab1.order68.getText();
              String ord78=tab1.order78.getText();
              String ord88=tab1.order88.getText();
              String ord98=tab1.order98.getText();
              String ord108=tab1.order108.getText();
              String ord118=tab1.order118.getText();
              String ord128=tab1.order128.getText();
 
              int od28=Integer.parseInt(ord28);
              int od38=Integer.parseInt(ord38);
              int od48=Integer.parseInt(ord48);
              int od58=Integer.parseInt(ord58);
              int od68=Integer.parseInt(ord68);
              int od78=Integer.parseInt(ord78);
              int od88=Integer.parseInt(ord88);
              int od98=Integer.parseInt(ord98);
              int od108=Integer.parseInt(ord108);
              int od118=Integer.parseInt(ord118);
              int od128=Integer.parseInt(ord128);
 
              String ord29=tab1.order29.getText();
              String ord39=tab1.order39.getText();
              String ord49=tab1.order49.getText();
              String ord59=tab1.order59.getText();
              String ord69=tab1.order69.getText();
              String ord79=tab1.order79.getText();
              String ord89=tab1.order89.getText();
              String ord99=tab1.order99.getText();
              String ord109=tab1.order109.getText();
              String ord119=tab1.order119.getText();
              String ord129=tab1.order129.getText();
 
              int od29=Integer.parseInt(ord29);
              int od39=Integer.parseInt(ord39);
              int od49=Integer.parseInt(ord49);
              int od59=Integer.parseInt(ord59);
              int od69=Integer.parseInt(ord69);
              int od79=Integer.parseInt(ord79);
              int od89=Integer.parseInt(ord89);
              int od99=Integer.parseInt(ord99);
              int od109=Integer.parseInt(ord109);
              int od119=Integer.parseInt(ord119);
              int od129=Integer.parseInt(ord129);
 
              String ord210=tab1.order210.getText();
              String ord310=tab1.order310.getText();
              String ord410=tab1.order410.getText();
              String ord510=tab1.order510.getText();
              String ord610=tab1.order610.getText();
              String ord710=tab1.order710.getText();
              String ord810=tab1.order810.getText();
              String ord910=tab1.order910.getText();
              String ord1010=tab1.order1010.getText();
              String ord1110=tab1.order1110.getText();
              String ord1210=tab1.order1210.getText();
 
              int od210=Integer.parseInt(ord210);
              int od310=Integer.parseInt(ord310);
              int od410=Integer.parseInt(ord410);
              int od510=Integer.parseInt(ord510);
              int od610=Integer.parseInt(ord610);
              int od710=Integer.parseInt(ord710);
              int od810=Integer.parseInt(ord810);
              int od910=Integer.parseInt(ord910);
              int od1010=Integer.parseInt(ord1010);
              int od1110=Integer.parseInt(ord1110);
              int od1210=Integer.parseInt(ord1210);
 
              String med=medu.getText();
              String med22=cntmedu2.getText();
              String med23=cntmedu3.getText();
              String med24=cntmedu4.getText();
              String med25=cntmedu5.getText();
              String med26=cntmedu6.getText();
              String med27=cntmedu7.getText();
              String med28=cntmedu8.getText();
              String med29=cntmedu9.getText();
 
              int md=Integer.parseInt(med);
              int cnt2md2=Integer.parseInt(med22);
              int cnt2md3=Integer.parseInt(med23);
              int cnt2md4=Integer.parseInt(med24);
              int cnt2md5=Integer.parseInt(med25);
              int cnt2md6=Integer.parseInt(med26);
              int cnt2md7=Integer.parseInt(med27);
              int cnt2md8=Integer.parseInt(med28);
              int cnt2md9=Integer.parseInt(med29);
 
              String fed=fedu.getText();
              String fed22=cntfedu2.getText();
              String fed23=cntfedu3.getText();
              String fed24=cntfedu4.getText();
              String fed25=cntfedu5.getText();
              String fed26=cntfedu6.getText();
              String fed27=cntfedu7.getText();
              String fed28=cntfedu8.getText();
              String fed29=cntfedu9.getText();
              int fd=Integer.parseInt(fed);
              int cnt2fd2=Integer.parseInt(fed22);
              int cnt2fd3=Integer.parseInt(fed23);
              int cnt2fd4=Integer.parseInt(fed24);
              int cnt2fd5=Integer.parseInt(fed25);
              int cnt2fd6=Integer.parseInt(fed26);
              int cnt2fd7=Integer.parseInt(fed27);
              int cnt2fd8=Integer.parseInt(fed28);
              int cnt2fd9=Integer.parseInt(fed29);
 
                 String tabc21=tab1.orderc2210.getText();
                 String tabc22=tab1.orderc2310.getText();
                 String tabc23=tab1.orderc2410.getText();
                 String tabc24=tab1.orderc2510.getText();
                 String tabc25=tab1.orderc2610.getText();
                 String tabc26=tab1.orderc2710.getText();
                 String tabc27=tab1.orderc2810.getText();
                 String tabc28=tab1.orderc2910.getText();
                 String tabc29=tab1.orderc21010.getText();
                 String tabc210=tab1.orderc21110.getText();
                 String tabc211=tab1.orderc21210.getText();
                 int tab12=Integer.parseInt(tabc21);
                 int tab22=Integer.parseInt(tabc22);
                 int tab32=Integer.parseInt(tabc23);
                 int tab42=Integer.parseInt(tabc24);
                 int tab52=Integer.parseInt(tabc25);
                 int tab62=Integer.parseInt(tabc26);
                 int tab72=Integer.parseInt(tabc27);
                 int tab82=Integer.parseInt(tabc28);
                 int tab92=Integer.parseInt(tabc29);
                 int tab102=Integer.parseInt(tabc210);
                 int tab112=Integer.parseInt(tabc211);
 
              int counter=0;
              int count=1;
              int tott;
              int tot;
              int totts;
              int counted;
 
             if(cntsxd==1){
                 String sex1a = tab1.sex2.getText();
                 int sex1b=Integer.parseInt(sex1a);
                 count=cntsxd2+1;
                 int count2=sex1b+1;
                 int male=count;                
                 cntsex2.setText(""+male);                 
                 tab1.sex2.setText(""+count2);
             }
            else if(cntsxd==2){
            String sex2a = tab1.sex3.getText();
            int sex2b=Integer.parseInt(sex2a);
            count=cntsxd3+1;
            int count2=sex2b+1;
            int female=count;
            tab1.sex3.setText(""+count2);
            cntsex3.setText(""+female);
             }
             if(cntsxd2>0||cntsxd3>0){
             int countT=0;
             String sex3a = tab1.sex4.getText();
             int sex3b=Integer.parseInt(sex3a);
             tot=1+cntsxd2+cntsxd3;
             countT+=sex3b+1;
             int total=tot;
             tab1.sex4.setText(""+countT);
             cntsex4.setText(""+total);
             }
             //Computation of Place of birth
             int plc;
             int plctot;
            if(pla==1){
                count=cnt2pla2+1;
                plc=count;
                tab1.cnt2place2.setText(""+plc);
              cntplace2.setText(""+plc);
            }
            else if(pla==2){
                count=cnt2pla3+1;
                plc=count;
                tab1.place3.setText(""+plc);
                cntplace3.setText(""+plc);
            }
            else if(pla==3){
                count=cnt2pla4+1;
               plc=count;
               tab1.place4.setText(""+plc);
               cntplace4.setText(""+plc);
            }
            else if(pla==4){
                count=cnt2pla5+1;
                plc=count;
                tab1.place5.setText(""+plc);
                cntplace5.setText(""+plc);
            }
             if(cnt2pla2>0||cnt2pla3>0||cnt2pla4>0||cnt2pla5>0){
 
                 tot=1+cnt2pla2+cnt2pla3+cnt2pla4+cnt2pla5;
                 plctot=tot;
                 tab1.place6.setText(""+plctot);
                 cntplace6.setText(""+plctot);
             }
             //Computation of birth order
             if(agd<15){
                 count=0;
                 if(od==1){
                     counted=tab12+1;
                     count=od1+1;
                     totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                     order210.setText(""+totts);
                     order1.setText(""+count);
                     tab1.order1.setText(""+count);
                     tab1.order210.setText(""+totts);
                     tab1.orderc2210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od2+1;
                     order2.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order2.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od3+1;
                     order3.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order3.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od4+1;
                     order4.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order4.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od5+1;
                     order5.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order5.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od6+1;
                     order6.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order6.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od7+1;
                     order7.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order7.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od8+1;
                     order8.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order8.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od9+1;
                     order9.setText(""+counter);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order9.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od10+1;
                     order10.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order10.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
 
                     counted=tab112+1;
                     tot=1+od1+od2+od3+od4+od5+od6+od7+od8+od9+od10;
                     order11.setText(""+tot);
                     totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                     order1210.setText(""+totts);
                     tab1.order11.setText(""+tot);
                     tab1.order1210.setText(""+totts);
                     tab1.orderc21210.setText(""+counted);
 
             }
             if(agd>=15&&agd<20){
                 if(od==1){
                 counted=tab12+1;
                 count=od21+1;
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order21.setText(""+count);
                 order210.setText(""+totts);
                 tab1.order21.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
                 }
              else if(od==2){
                  counted=tab22+1;
                 count=od31+1;
                 order31.setText(""+count);
                 totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                 order310.setText(""+totts);
                 tab1.order31.setText(""+count);
                 tab1.order310.setText(""+totts);
                 tab1.orderc2310.setText(""+counted);
             }
              else if(od==3){
                  counted=tab32+1;
                  count=od41+1;
                  order41.setText(""+count);
                  totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                  order410.setText(""+totts);
                  tab1.order41.setText(""+count);
                  tab1.order410.setText(""+totts);
                  tab1.orderc2410.setText(""+counted);
              }
              else if(od==4){
                  counted=tab42+1;
                  count=od51+1;
                  order51.setText(""+count);
                  totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                  order510.setText(""+totts);
                  tab1.order51.setText(""+count);
                  tab1.order510.setText(""+totts);
                  tab1.orderc2510.setText(""+counted);
              }
              else if(od==5){
                  counted=tab52+1;
                  count=od61+1;
                  order61.setText(""+count);
                  totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                  order610.setText(""+totts);
                  tab1.order61.setText(""+count);
                  tab1.order610.setText(""+totts);
                  tab1.orderc2610.setText(""+counted);
              }
              else if(od==6){
                  counted=tab62+1;
                  count=od71+1;
                  order71.setText(""+count);
                  totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                  order710.setText(""+totts);
                  tab1.order71.setText(""+count);
                  tab1.order710.setText(""+totts);
                  tab1.orderc2810.setText(""+counted);
              }
              else if(od==7){
                  counted=tab72+1;
                  count=od81+1;
                  order81.setText(""+count);
                  totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                  order810.setText(""+totts);
                  tab1.order81.setText(""+count);
                  tab1.order810.setText(""+totts);
                  tab1.orderc2810.setText(""+counted);
              }
              else if(od==8){
                  counted=tab82+1;
                  count=od91+1;
                  order91.setText(""+count);
                  totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                  order910.setText(""+totts);
                  tab1.order91.setText(""+count);
                  tab1.order910.setText(""+totts);
                  tab1.orderc2910.setText(""+counted);
              }
              else if(od==9){
                  counted=tab92+1;
                  count=od101+1;
                  order101.setText(""+count);
                  totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                  order1010.setText(""+totts);
                  tab1.order101.setText(""+count);
                  tab1.order1010.setText(""+totts);
                  tab1.orderc21010.setText(""+counted);
              }
              else if(od>=10){
                  counted=tab102+1;
                  count=od111+1;
                  order111.setText(""+count);
                  totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                  order1110.setText(""+totts);
                  tab1.order111.setText(""+count);
                  tab1.order1110.setText(""+totts);
                  tab1.orderc21110.setText(""+counted);
 
              }
                 counted=tab112+1;
             tot=1+od21+od31+od41+od51+od61+od71+od81+od91+od101+od111;
             order121.setText(""+tot);
             totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
             order1210.setText(""+totts);
             tab1.order121.setText(""+tot);
             tab1.order1210.setText(""+totts);
             tab1.orderc21210.setText(""+counted);
             }
             else if(agd>=20&&agd<25){
                 if(od==1){
                     counted=tab12+1;
                 count=od22+1;
                 order22.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order22.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od32+1;
                     order32.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order32.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od42+1;
                     order42.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order42.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od52+1;
                     order52.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order52.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od62+1;
                     order62.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order62.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od72+1;
                     order72.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order72.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od82+1;
                     order82.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order82.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od92+1;
                     order92.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order92.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od102+1;
                     order102.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order102.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od112+1;
                     order112.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order112.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
                 counted=tab112+1;
                 tot=1+od22+od32+od42+od52+od62+od72+od82+od92+od102+od112;
                 order122.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order122.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
             }
 
             else if(agd>=25&&agd<30){
                 counted=tab12+1;
                 if(od==1){
                 count=od23+1;
                 order23.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order23.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od33+1;
                     order33.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order33.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od43+1;
                     order43.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order43.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od53+1;
                     order53.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order53.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od63+1;
                     order63.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order63.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od73+1;
                     order73.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order73.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od83+1;
                     order83.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order83.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od93+1;
                     order93.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order93.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od103+1;
                     order103.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order103.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od113+1;
                     order113.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order113.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
                 counted=tab112+1;
                 tot=1+od23+od33+od43+od53+od63+od73+od83+od93+od103+od113;
                 order123.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order123.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
             }
             else if(agd>=30&&agd<35){
                 counted=tab12+1;
                 if(od==1){
                 count=od24+1;
                 order24.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order24.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
 
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od34+1;
                     order34.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order34.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od44+1;
                     order44.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order44.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od54+1;
                     order54.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order54.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od64+1;
                     order64.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order64.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od74+1;
                     order74.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order74.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od84+1;
                     order84.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order84.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od94+1;
                     order94.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order94.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od104+1;
                     order104.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order104.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od114+1;
                     order114.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order114.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
                 counted=tab112+1;
                 tot=1+od24+od34+od44+od54+od64+od74+od84+od94+od104+od114;
                 order124.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order124.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
             }
             else if(agd>=35&&agd<40){
                 if(od==1){
                 counted=tab12+1;
                 count=od25+1;
                 order25.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order25.setText(""+count);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
 
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od35+1;
                     order35.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order35.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od45+1;
                     order45.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order45.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
 
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od55+1;
                     order55.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order55.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od65+1;
                     order65.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order65.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od75+1;
                     order75.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order75.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od85+1;
                     order85.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order85.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od95+1;
                     order95.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order95.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od105+1;
                     order105.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order105.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od115+1;
                     order115.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order115.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
                 counted=tab112+1;
                 tot=1+od25+od35+od45+od55+od65+od75+od85+od95+od105+od115;
                 order125.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order125.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
             }
             else if(agd>=40&&agd<45){
                 if(od==1){
                 counted=tab12+1;
                 count=od26+1;
                 order26.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order26.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od32+1;
                     order36.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order36.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od46+1;
                     order46.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order46.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od56+1;
                     order56.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order56.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od66+1;
                     order66.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order66.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od76+1;
                     order76.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order76.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od86+1;
                     order86.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order86.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od96+1;
                     order96.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order96.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od106+1;
                     order106.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order106.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od116+1;
                     order116.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order116.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
                 counted=tab112+1;
                 tot=1+od26+od36+od46+od56+od66+od76+od86+od96+od106+od116;
                 order126.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order126.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
 
             }
             else if(agd>=45&&agd<50){
                 if(od==1){
                 counted=tab12+1;
                 count=od27+1;
                 order27.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order27.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od32+1;
                     order37.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order37.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od47+1;
                     order47.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order47.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od57+1;
                     order57.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order57.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od67+1;
                     order67.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order67.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od77+1;
                     order77.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order77.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od87+1;
                     order87.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order87.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc2810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od97+1;
                     order97.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order97.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc2910.setText(""+totts);
                     tab1.orderc2910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od107+1;
                     order107.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order107.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od117+1;
                     order117.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order117.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
 
                 }
                 counted=tab112+1;
                 tot=1+od27+od37+od47+od57+od67+od77+od87+od97+od107+od117;
                 order127.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order127.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
             }
             else if(agd>=50){
                 if(od==1){
                 counted=tab12+1;
                 count=od28+1;
                 order28.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order28.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc2210.setText(""+counted);
 
                 }
                 else if(od==2){
                     counted=tab22+1;
                     count=od39+1;
                     order38.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order38.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc2310.setText(""+counted);
 
                 }
                 else if(od==3){
                     counted=tab32+1;
                     count=od48+1;
                     order48.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order48.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc2410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab42+1;
                     count=od58+1;
                     order58.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order58.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc2510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab52+1;
                     count=od68+1;
                     order68.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order68.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc2610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab62+1;
                     count=od78+1;
                     order78.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order78.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc2710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab72+1;
                     count=od88+1;
                     order88.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order88.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab82+1;
                     count=od98+1;
                     order98.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order98.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab92+1;
                     count=od108+1;
                     order108.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order108.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc21010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab102+1;
                     count=od118+1;
                     order118.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order118.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc21110.setText(""+counted);
                 }
                 counted=tab112+1;
                 tot=1+od28+od38+od48+od58+od68+od78+od88+od98+od108+od118;
                 order128.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order128.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc21210.setText(""+counted);
             }
             if(md==1){
                 count=cnt2md2+1;
                 cntmedu2.setText(""+count);
                 tab1.cnt2medu2.setText(""+count);
             }
             else if(md==2){
                 count=cnt2md3+1;
                 cntmedu3.setText(""+count);
                 tab1.cnt2medu3.setText(""+count);
             }
             else if(md==3){
                 count=cnt2md4+1;
                 counter=count;
                 cntmedu4.setText(""+count);
                 tab1.cnt2medu4.setText(""+count);
             }
             else if(md==4){
                 count=cnt2md5+1;
                 cntmedu5.setText(""+count);
                 tab1.cnt2medu5.setText(""+count);
             }
             else if(md==6){
                 count=cnt2md6+1;
                 cntmedu6.setText(""+count);
                 tab1.cnt2medu6.setText(""+count);
             }
             else if(md==7){
                 count=cnt2md7+1;
                 cntmedu7.setText(""+count);
                 tab1.cnt2medu7.setText(""+count);
             }
             else if(md==8){
                 count=cnt2md8+1;
                 counter=count;
                 cntmedu8.setText(""+count);
                 tab1.cnt2medu8.setText(""+count);
             }
             else if(md==0){
                 count=cnt2md9+1;
                 cntmedu9.setText(""+count);
                 tab1.cnt2medu9.setText(""+count);
             }
             if(fd==1){
                 count=cnt2fd2+1;
                 cntfedu2.setText(""+count);
                 tab1.cnt2fedu2.setText(""+count);
             }
             else if(fd==2){
                 count=cnt2fd3+1;
                 cntfedu3.setText(""+count);
                 tab1.cnt2fedu3.setText(""+count);
             }
             else if(fd==3){
                 count=cnt2fd4+1;
                 cntfedu4.setText(""+count);
                 tab1.cnt2fedu4.setText(""+count);
             }
             else if(fd==4){
                 count=cnt2fd5+1;
                 cntfedu5.setText(""+count);
                 tab1.cnt2fedu5.setText(""+count);
             }
             else if(fd==6){
                 count=cnt2fd6+1;
                 cntfedu6.setText(""+count);
                 tab1.cnt2fedu6.setText(""+count);
             }
             else if(fd==7){
                 count=cnt2fd7+1;
                 cntfedu7.setText(""+count);
                 tab1.cnt2fedu7.setText(""+count);
             }
             else if(fd==8){
                 count=cnt2fd8+1;
                 cntfedu8.setText(""+count);
                 tab1.cnt2fedu8.setText(""+count);
             }
             else if(fd==0){
                 count=cnt2fd9+1;
                 cntfedu9.setText(""+count);
                 tab1.cnt2fedu9.setText(""+count);
             }
           }
 
            catch(Exception a){
           JOptionPane.showMessageDialog(null, a);
               }
           }
 
      else
     if(cnt3.isSelected()){
             String center3=regC3.getText();
             tab1.cnt3reg.setText(""+center3);
                   try{
               //Processing sex
              String sx=sex.getText();
              String sx22=cntsex2.getText();
              String sx23=cntsex3.getText();
              String sx24=cntsex4.getText();
 
              int cntsxd=Integer.parseInt(sx);
              int cntsxd2=Integer.parseInt(sx22);
              int cntsxd3=Integer.parseInt(sx23);
              int cntsxd4=Integer.parseInt(sx23);
              //Processing place of birth
              String plac=place.getText();
              String plac22=cntplace2.getText();
              String plac23=cntplace3.getText();
              String plac24=cntplace4.getText();
              String plac25=cntplace5.getText();
              String plac26=cntplace6.getText();
 
              int pla=Integer.parseInt(plac);
              int cnt2pla2=Integer.parseInt(plac22);
              int cnt2pla3=Integer.parseInt(plac23);
              int cnt2pla4=Integer.parseInt(plac24);
              int cnt2pla5=Integer.parseInt(plac25);
              int cnt2pla6=Integer.parseInt(plac26);
              //Processing Birth order by age of Mother
              String ages=age.getText();
              int agd=Integer.parseInt(ages);
 
              String ord=order.getText();
              String ord1=tab1.order1.getText();
              String ord2=tab1.order2.getText();
              String ord3=tab1.order3.getText();
              String ord4=tab1.order4.getText();
              String ord5=tab1.order5.getText();
              String ord6=tab1.order6.getText();
              String ord7=tab1.order7.getText();
              String ord8=tab1.order8.getText();
              String ord9=tab1.order9.getText();
              String ord10=tab1.order10.getText();
              String ord11=tab1.order11.getText();
 
              int od=Integer.parseInt(ord);
              int od1=Integer.parseInt(ord1);
              int od2=Integer.parseInt(ord2);
              int od3=Integer.parseInt(ord3);
              int od4=Integer.parseInt(ord4);
              int od5=Integer.parseInt(ord5);
              int od6=Integer.parseInt(ord6);
              int od7=Integer.parseInt(ord7);
              int od8=Integer.parseInt(ord8);
              int od9=Integer.parseInt(ord9);
              int od10=Integer.parseInt(ord10);
              int od11=Integer.parseInt(ord11);
 
              String ord21=tab1.order21.getText();
              String ord31=tab1.order31.getText();
              String ord41=tab1.order41.getText();
              String ord51=tab1.order51.getText();
              String ord61=tab1.order61.getText();
              String ord71=tab1.order71.getText();
              String ord81=tab1.order81.getText();
              String ord91=tab1.order91.getText();
              String ord101=tab1.order101.getText();
              String ord111=tab1.order111.getText();
              String ord121=tab1.order121.getText();
 
              int od21=Integer.parseInt(ord21);
              int od31=Integer.parseInt(ord31);
              int od41=Integer.parseInt(ord41);
              int od51=Integer.parseInt(ord51);
              int od61=Integer.parseInt(ord61);
              int od71=Integer.parseInt(ord71);
              int od81=Integer.parseInt(ord81);
              int od91=Integer.parseInt(ord91);
              int od101=Integer.parseInt(ord101);
              int od111=Integer.parseInt(ord111);
              int od121=Integer.parseInt(ord121);
 
              String ord22=tab1.order22.getText();
              String ord32=tab1.order32.getText();
              String ord42=tab1.order42.getText();
              String ord52=tab1.order52.getText();
              String ord62=tab1.order62.getText();
              String ord72=tab1.order72.getText();
              String ord82=tab1.order82.getText();
              String ord92=tab1.order92.getText();
              String ord102=tab1.order102.getText();
              String ord112=tab1.order112.getText();
              String ord122=tab1.order122.getText();
 
              int od22=Integer.parseInt(ord22);
              int od32=Integer.parseInt(ord32);
              int od42=Integer.parseInt(ord42);
              int od52=Integer.parseInt(ord52);
              int od62=Integer.parseInt(ord62);
              int od72=Integer.parseInt(ord72);
              int od82=Integer.parseInt(ord82);
              int od92=Integer.parseInt(ord92);
              int od102=Integer.parseInt(ord102);
              int od112=Integer.parseInt(ord112);
              int od122=Integer.parseInt(ord122);
 
              String ord23=tab1.order23.getText();
              String ord33=tab1.order33.getText();
              String ord43=tab1.order43.getText();
              String ord53=tab1.order53.getText();
              String ord63=tab1.order63.getText();
              String ord73=tab1.order73.getText();
              String ord83=tab1.order83.getText();
              String ord93=tab1.order93.getText();
              String ord103=tab1.order103.getText();
              String ord113=tab1.order113.getText();
              String ord123=tab1.order123.getText();
 
              int od23=Integer.parseInt(ord23);
              int od33=Integer.parseInt(ord33);
              int od43=Integer.parseInt(ord43);
              int od53=Integer.parseInt(ord53);
              int od63=Integer.parseInt(ord63);
              int od73=Integer.parseInt(ord73);
              int od83=Integer.parseInt(ord83);
              int od93=Integer.parseInt(ord93);
              int od103=Integer.parseInt(ord103);
              int od113=Integer.parseInt(ord113);
              int od123=Integer.parseInt(ord123);
 
              String ord24=tab1.order24.getText();
              String ord34=tab1.order34.getText();
              String ord44=tab1.order44.getText();
              String ord54=tab1.order54.getText();
              String ord64=tab1.order64.getText();
              String ord74=tab1.order74.getText();
              String ord84=tab1.order84.getText();
              String ord94=tab1.order94.getText();
              String ord104=tab1.order104.getText();
              String ord114=tab1.order114.getText();
              String ord124=tab1.order124.getText();
 
              int od24=Integer.parseInt(ord24);
              int od34=Integer.parseInt(ord34);
              int od44=Integer.parseInt(ord44);
              int od54=Integer.parseInt(ord54);
              int od64=Integer.parseInt(ord64);
              int od74=Integer.parseInt(ord74);
              int od84=Integer.parseInt(ord84);
              int od94=Integer.parseInt(ord94);
              int od104=Integer.parseInt(ord104);
              int od114=Integer.parseInt(ord114);
              int od124=Integer.parseInt(ord124);
 
              String ord25=tab1.order25.getText();
              String ord35=tab1.order35.getText();
              String ord45=tab1.order45.getText();
              String ord55=tab1.order55.getText();
              String ord65=tab1.order65.getText();
              String ord75=tab1.order75.getText();
              String ord85=tab1.order85.getText();
              String ord95=tab1.order95.getText();
              String ord105=tab1.order105.getText();
              String ord115=tab1.order115.getText();
              String ord125=tab1.order125.getText();
 
              int od25=Integer.parseInt(ord25);
              int od35=Integer.parseInt(ord35);
              int od45=Integer.parseInt(ord45);
              int od55=Integer.parseInt(ord55);
              int od65=Integer.parseInt(ord65);
              int od75=Integer.parseInt(ord75);
              int od85=Integer.parseInt(ord85);
              int od95=Integer.parseInt(ord95);
              int od105=Integer.parseInt(ord105);
              int od115=Integer.parseInt(ord115);
              int od125=Integer.parseInt(ord125);
 
              String ord26=tab1.order26.getText();
              String ord36=tab1.order36.getText();
              String ord46=tab1.order46.getText();
              String ord56=tab1.order56.getText();
              String ord66=tab1.order66.getText();
              String ord76=tab1.order76.getText();
              String ord86=tab1.order86.getText();
              String ord96=tab1.order96.getText();
              String ord106=tab1.order106.getText();
              String ord116=tab1.order116.getText();
              String ord126=tab1.order126.getText();
 
              int od26=Integer.parseInt(ord26);
              int od36=Integer.parseInt(ord36);
              int od46=Integer.parseInt(ord46);
              int od56=Integer.parseInt(ord56);
              int od66=Integer.parseInt(ord66);
              int od76=Integer.parseInt(ord76);
              int od86=Integer.parseInt(ord86);
              int od96=Integer.parseInt(ord96);
              int od106=Integer.parseInt(ord106);
              int od116=Integer.parseInt(ord116);
              int od126=Integer.parseInt(ord126);
 
              String ord27=tab1.order27.getText();
              String ord37=tab1.order37.getText();
              String ord47=tab1.order47.getText();
              String ord57=tab1.order57.getText();
              String ord67=tab1.order67.getText();
              String ord77=tab1.order77.getText();
              String ord87=tab1.order87.getText();
              String ord97=tab1.order97.getText();
              String ord107=tab1.order107.getText();
              String ord117=tab1.order117.getText();
              String ord127=tab1.order127.getText();
 
              int od27=Integer.parseInt(ord27);
              int od37=Integer.parseInt(ord37);
              int od47=Integer.parseInt(ord47);
              int od57=Integer.parseInt(ord57);
              int od67=Integer.parseInt(ord67);
              int od77=Integer.parseInt(ord77);
              int od87=Integer.parseInt(ord87);
              int od97=Integer.parseInt(ord97);
              int od107=Integer.parseInt(ord107);
              int od117=Integer.parseInt(ord117);
              int od127=Integer.parseInt(ord127);
 
              String ord28=tab1.order28.getText();
              String ord38=tab1.order38.getText();
              String ord48=tab1.order48.getText();
              String ord58=tab1.order58.getText();
              String ord68=tab1.order68.getText();
              String ord78=tab1.order78.getText();
              String ord88=tab1.order88.getText();
              String ord98=tab1.order98.getText();
              String ord108=tab1.order108.getText();
              String ord118=tab1.order118.getText();
              String ord128=tab1.order128.getText();
 
              int od28=Integer.parseInt(ord28);
              int od38=Integer.parseInt(ord38);
              int od48=Integer.parseInt(ord48);
              int od58=Integer.parseInt(ord58);
              int od68=Integer.parseInt(ord68);
              int od78=Integer.parseInt(ord78);
              int od88=Integer.parseInt(ord88);
              int od98=Integer.parseInt(ord98);
              int od108=Integer.parseInt(ord108);
              int od118=Integer.parseInt(ord118);
              int od128=Integer.parseInt(ord128);
 
              String ord29=tab1.order29.getText();
              String ord39=tab1.order39.getText();
              String ord49=tab1.order49.getText();
              String ord59=tab1.order59.getText();
              String ord69=tab1.order69.getText();
              String ord79=tab1.order79.getText();
              String ord89=tab1.order89.getText();
              String ord99=tab1.order99.getText();
              String ord109=tab1.order109.getText();
              String ord119=tab1.order119.getText();
              String ord129=tab1.order129.getText();
 
              int od29=Integer.parseInt(ord29);
              int od39=Integer.parseInt(ord39);
              int od49=Integer.parseInt(ord49);
              int od59=Integer.parseInt(ord59);
              int od69=Integer.parseInt(ord69);
              int od79=Integer.parseInt(ord79);
              int od89=Integer.parseInt(ord89);
              int od99=Integer.parseInt(ord99);
              int od109=Integer.parseInt(ord109);
              int od119=Integer.parseInt(ord119);
              int od129=Integer.parseInt(ord129);
 
              String ord210=tab1.order210.getText();
              String ord310=tab1.order310.getText();
              String ord410=tab1.order410.getText();
              String ord510=tab1.order510.getText();
              String ord610=tab1.order610.getText();
              String ord710=tab1.order710.getText();
              String ord810=tab1.order810.getText();
              String ord910=tab1.order910.getText();
              String ord1010=tab1.order1010.getText();
              String ord1110=tab1.order1110.getText();
              String ord1210=tab1.order1210.getText();
 
              int od210=Integer.parseInt(ord210);
              int od310=Integer.parseInt(ord310);
              int od410=Integer.parseInt(ord410);
              int od510=Integer.parseInt(ord510);
              int od610=Integer.parseInt(ord610);
              int od710=Integer.parseInt(ord710);
              int od810=Integer.parseInt(ord810);
              int od910=Integer.parseInt(ord910);
              int od1010=Integer.parseInt(ord1010);
              int od1110=Integer.parseInt(ord1110);
              int od1210=Integer.parseInt(ord1210);
 
              String med=medu.getText();
              String med22=cntmedu2.getText();
              String med23=cntmedu3.getText();
              String med24=cntmedu4.getText();
              String med25=cntmedu5.getText();
              String med26=cntmedu6.getText();
              String med27=cntmedu7.getText();
              String med28=cntmedu8.getText();
              String med29=cntmedu9.getText();
              int md=Integer.parseInt(med);
              int cnt2md2=Integer.parseInt(med22);
              int cnt2md3=Integer.parseInt(med23);
              int cnt2md4=Integer.parseInt(med24);
              int cnt2md5=Integer.parseInt(med25);
              int cnt2md6=Integer.parseInt(med26);
              int cnt2md7=Integer.parseInt(med27);
              int cnt2md8=Integer.parseInt(med28);
              int cnt2md9=Integer.parseInt(med29);
 
              String fed=fedu.getText();
              String fed22=cntfedu2.getText();
              String fed23=cntfedu3.getText();
              String fed24=cntfedu4.getText();
              String fed25=cntfedu5.getText();
              String fed26=cntfedu6.getText();
              String fed27=cntfedu7.getText();
              String fed28=cntfedu8.getText();
              String fed29=cntfedu9.getText();
              int fd=Integer.parseInt(fed);
              int cnt2fd2=Integer.parseInt(fed22);
              int cnt2fd3=Integer.parseInt(fed23);
              int cnt2fd4=Integer.parseInt(fed24);
              int cnt2fd5=Integer.parseInt(fed25);
              int cnt2fd6=Integer.parseInt(fed26);
              int cnt2fd7=Integer.parseInt(fed27);
              int cnt2fd8=Integer.parseInt(fed28);
              int cnt2fd9=Integer.parseInt(fed29);
 
                 String tabc31=tab1.orderc3210.getText();
                 String tabc32=tab1.orderc3310.getText();
                 String tabc33=tab1.orderc3410.getText();
                 String tabc34=tab1.orderc3510.getText();
                 String tabc35=tab1.orderc3610.getText();
                 String tabc36=tab1.orderc3710.getText();
                 String tabc37=tab1.orderc3810.getText();
                 String tabc38=tab1.orderc3910.getText();
                 String tabc39=tab1.orderc31010.getText();
                 String tabc310=tab1.orderc31110.getText();
                 String tabc311=tab1.orderc31210.getText();
                 int tab13=Integer.parseInt(tabc31);
                 int tab23=Integer.parseInt(tabc32);
                 int tab33=Integer.parseInt(tabc33);
                 int tab43=Integer.parseInt(tabc34);
                 int tab53=Integer.parseInt(tabc35);
                 int tab63=Integer.parseInt(tabc36);
                 int tab73=Integer.parseInt(tabc37);
                 int tab83=Integer.parseInt(tabc38);
                 int tab93=Integer.parseInt(tabc39);
                 int tab103=Integer.parseInt(tabc310);
                 int tab113=Integer.parseInt(tabc311);
 
              int counter=0;
              int count;
              int tott;
              int tot;
              int totts;
              int counted;
             if(cntsxd==1){
                 String sex3a=tab1.sex2.getText();
                 int sex3a1=Integer.parseInt(sex3a);
                 int count2=sex3a1+1;
                 count=cntsxd2+1;
                 int male=count;
                 tab1.sex2.setText(""+count2);
                 cntsex2.setText(""+male);
             }
            else if(cntsxd==2){
             count=cntsxd3+1;
            int female=count;
            tab1.sex3.setText(""+female);
            cntsex3.setText(""+female);
             }
             String sex3b=tab1.sex4.getText();
             int sex3b1=Integer.parseInt(sex3b);
             if(cntsxd2>0||cntsxd3>0){
             tot=1+cntsxd2+cntsxd3;
             int total=tot;
             int countT=sex3b1+1;
             tab1.sex4.setText(""+countT);
             cntsex4.setText(""+total);
             }
             //Computation of Place of birth
             int plc;
             int plctot;
            if(pla==1){
                count=cnt2pla2+1;
                plc=count;
                tab1.cnt3place2.setText(""+plc);
              cntplace2.setText(""+plc);
            }
            else if(pla==2){
                count=cnt2pla3+1;
                plc=count;
                tab1.cnt3place3.setText(""+plc);
                cntplace3.setText(""+plc);
            }
            else if(pla==3){
                count=cnt2pla4+1;
               plc=count;
               tab1.cnt3place4.setText(""+plc);
               cntplace4.setText(""+plc);
            }
            else if(pla==4){
                count=cnt2pla5+1;
                plc=count;
                tab1.cnt3place5.setText(""+plc);
                cntplace5.setText(""+plc);
            }
             if(cnt2pla2>0||cnt2pla3>0||cnt2pla4>0||cnt2pla5>0){
 
                 tot=1+cnt2pla2+cnt2pla3+cnt2pla4+cnt2pla5;
                 plctot=tot;
                 tab1.cnt3place6.setText(""+plctot);
                 cntplace6.setText(""+plctot);
             }
             //Computation of birth order
             if(agd<15){                 
                 if(od==1){
                     counted=tab13+1;
                     count=od1+1;
                     totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                     order210.setText(""+totts);
                     order1.setText(""+count);
                     tab1.order1.setText(""+count);
                     tab1.order210.setText(""+totts);
                     tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od2+1;
                     order2.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order2.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od3+1;
                     order3.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order3.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od4+1;
                     order4.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order4.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od5+1;
                     order5.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order5.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od6+1;
                     order6.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order6.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od7+1;
                     order7.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order7.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od8+1;
                     order8.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order8.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od9+1;
                     order9.setText(""+counter);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order9.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od10+1;
                     order10.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order10.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }                
                     counted=tab113+1;
                     tot=1+od1+od2+od3+od4+od5+od6+od7+od8+od9+od10;
                     order11.setText(""+tot);
                     totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                     order1210.setText(""+totts);
                     tab1.order11.setText(""+tot);
                     tab1.order1210.setText(""+totts);
                     tab1.orderc31210.setText(""+counted);                 
             }
             if(agd>=15&&agd<20){
                 if(od==1){
                 counted=tab13+1;
                 count=od21+1;
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order21.setText(""+count);
                 order210.setText(""+totts);
                 tab1.order21.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
              else if(od==2){
                 counted=tab23+1;
                 count=od31+1;
                 order31.setText(""+count);
                 totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                 order310.setText(""+totts);
                 tab1.order31.setText(""+count);
                 tab1.order310.setText(""+totts);
                 tab1.orderc3310.setText(""+counted);
             }
              else if(od==3){
                  counted=tab33+1;
                  count=od41+1;
                  order41.setText(""+count);
                  totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                  order410.setText(""+totts);
                  tab1.order41.setText(""+count);
                  tab1.order410.setText(""+totts);
                  tab1.orderc3410.setText(""+counted);
              }
              else if(od==4){
                  counted=tab43+1;
                  count=od51+1;
                  order51.setText(""+count);
                  totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                  order510.setText(""+totts);
                  tab1.order51.setText(""+count);
                  tab1.order510.setText(""+totts);
                  tab1.orderc3510.setText(""+counted);
              }
              else if(od==5){
                  counted=tab53+1;
                  count=od61+1;
                  order61.setText(""+count);
                  totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                  order610.setText(""+totts);
                  tab1.order61.setText(""+count);
                  tab1.order610.setText(""+totts);
                  tab1.orderc3610.setText(""+counted);
              }
              else if(od==6){
                  counted=tab63+1;
                  count=od71+1;
                  order71.setText(""+count);
                  totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                  order710.setText(""+totts);
                  tab1.order71.setText(""+count);
                  tab1.order710.setText(""+totts);
                  tab1.orderc3710.setText(""+counted);
              }
              else if(od==7){
                  counted=tab73+1;
                  count=od81+1;
                  order81.setText(""+count);
                  totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                  order810.setText(""+totts);
                  tab1.order81.setText(""+count);
                  tab1.order810.setText(""+totts);
                  tab1.orderc3810.setText(""+counted);
              }
              else if(od==8){
                  counted=tab83+1;
                  count=od91+1;
                  order91.setText(""+count);
                  totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                  order910.setText(""+totts);
                  tab1.order91.setText(""+count);
                  tab1.order910.setText(""+totts);
                  tab1.orderc3910.setText(""+counted);
              }
              else if(od==9){
                  counted=tab93+1;
                  count=od101+1;
                  order101.setText(""+count);
                  totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                  order1010.setText(""+totts);
                  tab1.order101.setText(""+count);
                  tab1.order1010.setText(""+totts);
                  tab1.orderc31010.setText(""+counted);
              }
              else if(od>=10){
                  counted=tab103+1;
                  count=od111+1;
                  order111.setText(""+count);
                  totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                  order1110.setText(""+totts);
                  tab1.order111.setText(""+count);
                  tab1.order1110.setText(""+count);
                  tab1.orderc31110.setText(""+counted);
              }
                 counted=tab113+1;
             tot=1+od21+od31+od41+od51+od61+od71+od81+od91+od101+od111;
             order121.setText(""+tot);
             totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
             order1210.setText(""+totts);
             tab1.order121.setText(""+tot);
             tab1.order1210.setText(""+totts);
             tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=20&&agd<25){
                 counted=tab13+1;
                 if(od==1){
                 count=od22+1;
                 order22.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order22.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od32+1;
                     order32.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order32.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od42+1;
                     order42.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order42.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od52+1;
                     order52.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order52.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od62+1;
                     order62.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order62.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od72+1;
                     order72.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order72.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od82+1;
                     order82.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order82.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od92+1;
                     order92.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order92.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od102+1;
                     order102.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order102.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od112+1;
                     order112.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order112.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab13+1;
                 tot=1+od22+od32+od42+od52+od62+od72+od82+od92+od102+od112;
                 order122.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order122.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=25&&agd<30){
                 counted=tab13+1;
                 if(od==1){
                 count=od23+1;
                 order23.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order23.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od33+1;
                     order33.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order33.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od43+1;
                     order43.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order43.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od53+1;
                     order53.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order53.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od63+1;
                     order63.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order63.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od73+1;
                     order73.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order73.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od83+1;
                     order83.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order83.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od93+1;
                     order93.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order93.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od103+1;
                     order103.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order103.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od113+1;
                     order113.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order113.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od23+od33+od43+od53+od63+od73+od83+od93+od103+od113;
                 order123.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order123.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=30&&agd<35){
                 counted=tab13+1;
                 if(od==1){
                 count=od24+1;
                 order24.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order24.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od34+1;
                     order34.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order34.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od44+1;
                     order44.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order44.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od54+1;
                     order54.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order54.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od64+1;
                     order64.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order64.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od74+1;
                     order74.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order74.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od84+1;
                     order84.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order84.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od94+1;
                     order94.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order94.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od104+1;
                     order104.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order104.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od114+1;
                     order114.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order114.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od24+od34+od44+od54+od64+od74+od84+od94+od104+od114;
                 order124.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order124.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=35&&agd<40){
                 counted=tab13+1;
                 if(od==1){
                 count=od25+1;
                 order25.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order25.setText(""+count);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od35+1;
                     order35.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order35.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od45+1;
                     order45.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order45.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od55+1;
                     order55.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order55.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od65+1;
                     order65.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order65.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od75+1;
                     order75.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order75.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od85+1;
                     order85.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order85.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od95+1;
                     order95.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order95.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od105+1;
                     order105.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order105.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od115+1;
                     order115.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order115.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od25+od35+od45+od55+od65+od75+od85+od95+od105+od115;
                 order125.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order125.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=40&&agd<45){
                 counted=tab13+1;
                 if(od==1){
                 count=od26+1;
                 order26.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order26.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od32+1;
                     order36.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order36.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od46+1;
                     order46.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order46.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od56+1;
                     order56.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order56.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od66+1;
                     order66.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order66.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od76+1;
                     order76.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order76.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od86+1;
                     order86.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order86.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od96+1;
                     order96.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order96.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od106+1;
                     order106.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order106.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od116+1;
                     order116.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order116.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od26+od36+od46+od56+od66+od76+od86+od96+od106+od116;
                 order126.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order126.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=45&&agd<50){
                 if(od==1){
                     counted=tab13+1;
                 count=od27+1;
                 order27.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order27.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od32+1;
                     order37.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order37.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab23+1;
                     count=od47+1;
                     order47.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order47.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od57+1;
                     order57.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order57.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od67+1;
                     order67.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order67.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od77+1;
                     order77.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order77.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od87+1;
                     order87.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order87.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od97+1;
                     order97.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order97.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od107+1;
                     order107.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order107.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab13+1;
                     count=od117+1;
                     order117.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order117.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od27+od37+od47+od57+od67+od77+od87+od97+od107+od117;
                 order127.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order127.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc31210.setText(""+counted);
             }
             else if(agd>=50){
                 if(od==1){
                     counted=tab13+1;
                 count=od28+1;
                 order28.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order28.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc3210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od38+1;
                     order38.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order38.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od48+1;
                     order48.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order48.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc3410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od58+1;
                     order58.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order58.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc3510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od68+1;
                     order68.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order68.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc3610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od78+1;
                     order78.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order78.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc3710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od88+1;
                     order88.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order88.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc3810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od98+1;
                     order98.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order98.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc3910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od108+1;
                     order108.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order108.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc31010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od118+1;
                     order118.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order118.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc31110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od28+od38+od48+od58+od68+od78+od88+od98+od108+od118;
                 order128.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order128.setText(""+tot);
                  tab1.order1210.setText(""+totts);
                  tab1.orderc31210.setText(""+counted);
             }
             if(md==1){
                 count=cnt2md2+1;
                 cntmedu2.setText(""+count);
                 tab1.cnt3medu2.setText(""+count);
             }
             else if(md==2){
                 count=cnt2md3+1;
                 cntmedu3.setText(""+count);
                 tab1.cnt3medu3.setText(""+count);
             }
             else if(md==3){
                 count=cnt2md4+1;
                 counter=count;
                 cntmedu4.setText(""+count);
                 tab1.cnt3medu4.setText(""+count);
             }
             else if(md==4){
                 count=cnt2md5+1;
                 cntmedu5.setText(""+count);
                 tab1.cnt3medu5.setText(""+count);
             }
             else if(md==6){
                 count=cnt2md6+1;
                 cntmedu6.setText(""+count);
                 tab1.cnt3medu6.setText(""+count);
             }
             else if(md==7){
                 count=cnt2md7+1;
                 cntmedu7.setText(""+count);
                 tab1.cnt3medu7.setText(""+count);
             }
             else if(md==8){
                 count=cnt2md8+1;
                 counter=count;
                 cntmedu8.setText(""+count);
                 tab1.cnt3medu8.setText(""+count);
             }
             else if(md==0){
                 count=cnt2md9+1;
                 cntmedu9.setText(""+count);
                 tab1.cnt3medu9.setText(""+count);
             }
             if(fd==1){
                 count=cnt2fd2+1;
                 cntfedu2.setText(""+count);
                 tab1.cnt3fedu2.setText(""+count);
             }
             else if(fd==2){
                 count=cnt2fd3+1;
                 cntfedu3.setText(""+count);
                 tab1.cnt3fedu3.setText(""+count);
             }
             else if(fd==3){
                 count=cnt2fd4+1;
                 cntfedu4.setText(""+count);
                 tab1.cnt3fedu4.setText(""+count);
             }
             else if(fd==4){
                 count=cnt2fd5+1;
                 cntfedu5.setText(""+count);
                 tab1.cnt3fedu5.setText(""+count);
             }
             else if(fd==6){
                 count=cnt2fd6+1;
                 cntfedu6.setText(""+count);
                 tab1.cnt3fedu6.setText(""+count);
             }
             else if(fd==7){
                 count=cnt2fd7+1;
                 cntfedu7.setText(""+count);
                 tab1.cnt3fedu7.setText(""+count);
             }
             else if(fd==8){
                 count=cnt2fd8+1;
                 cntfedu8.setText(""+count);
                 tab1.cnt3fedu8.setText(""+count);
             }
             else if(fd==0){
                 count=cnt2fd9+1;
                 cntfedu9.setText(""+count);
                 tab1.cnt3fedu9.setText(""+count);
             }
           }
            catch(Exception ab){
           JOptionPane.showMessageDialog(null, ab);
                  }
                }  
               else
         if(cnt2.isSelected()==false && cnt3.isSelected()==false && cnt4.isSelected()==false){
             JOptionPane.showMessageDialog(null, "Please Select appropriate Centre to continue");
         }
               }                        
          });
          proc2.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent e){
                  if(cnt4.isSelected()){
                        tab1.cnt4reg.setText(regC4.getText());
                   try{
               //Processing sex
              String sx=sex.getText();
              String sx22=cntsex2.getText();
              String sx23=cntsex3.getText();
              String sx24=cntsex4.getText();
 
              int cntsxd=Integer.parseInt(sx);
              int cntsxd2=Integer.parseInt(sx22);
              int cntsxd3=Integer.parseInt(sx23);
              int cntsxd4=Integer.parseInt(sx23);
              //Processing place of birth
              String plac=place.getText();
              String plac22=cntplace2.getText();
              String plac23=cntplace3.getText();
              String plac24=cntplace4.getText();
              String plac25=cntplace5.getText();
              String plac26=cntplace6.getText();
 
              int pla=Integer.parseInt(plac);
              int cnt2pla2=Integer.parseInt(plac22);
              int cnt2pla3=Integer.parseInt(plac23);
              int cnt2pla4=Integer.parseInt(plac24);
              int cnt2pla5=Integer.parseInt(plac25);
              int cnt2pla6=Integer.parseInt(plac26);
              //Processing Birth order by age of Mother
              String ages=age.getText();
              int agd=Integer.parseInt(ages);
 
              String ord=order.getText();
              String ord1=tab1.order1.getText();
              String ord2=tab1.order2.getText();
              String ord3=tab1.order3.getText();
              String ord4=tab1.order4.getText();
              String ord5=tab1.order5.getText();
              String ord6=tab1.order6.getText();
              String ord7=tab1.order7.getText();
              String ord8=tab1.order8.getText();
              String ord9=tab1.order9.getText();
              String ord10=tab1.order10.getText();
              String ord11=tab1.order11.getText();
 
              int od=Integer.parseInt(ord);
              int od1=Integer.parseInt(ord1);
              int od2=Integer.parseInt(ord2);
              int od3=Integer.parseInt(ord3);
              int od4=Integer.parseInt(ord4);
              int od5=Integer.parseInt(ord5);
              int od6=Integer.parseInt(ord6);
              int od7=Integer.parseInt(ord7);
              int od8=Integer.parseInt(ord8);
              int od9=Integer.parseInt(ord9);
              int od10=Integer.parseInt(ord10);
              int od11=Integer.parseInt(ord11);
 
              String ord21=tab1.order21.getText();
              String ord31=tab1.order31.getText();
              String ord41=tab1.order41.getText();
              String ord51=tab1.order51.getText();
              String ord61=tab1.order61.getText();
              String ord71=tab1.order71.getText();
              String ord81=tab1.order81.getText();
              String ord91=tab1.order91.getText();
              String ord101=tab1.order101.getText();
              String ord111=tab1.order111.getText();
              String ord121=tab1.order121.getText();
 
              int od21=Integer.parseInt(ord21);
              int od31=Integer.parseInt(ord31);
              int od41=Integer.parseInt(ord41);
              int od51=Integer.parseInt(ord51);
              int od61=Integer.parseInt(ord61);
              int od71=Integer.parseInt(ord71);
              int od81=Integer.parseInt(ord81);
              int od91=Integer.parseInt(ord91);
              int od101=Integer.parseInt(ord101);
              int od111=Integer.parseInt(ord111);
              int od121=Integer.parseInt(ord121);
 
              String ord22=tab1.order22.getText();
              String ord32=tab1.order32.getText();
              String ord42=tab1.order42.getText();
              String ord52=tab1.order52.getText();
              String ord62=tab1.order62.getText();
              String ord72=tab1.order72.getText();
              String ord82=tab1.order82.getText();
              String ord92=tab1.order92.getText();
              String ord102=tab1.order102.getText();
              String ord112=tab1.order112.getText();
              String ord122=tab1.order122.getText();
 
              int od22=Integer.parseInt(ord22);
              int od32=Integer.parseInt(ord32);
              int od42=Integer.parseInt(ord42);
              int od52=Integer.parseInt(ord52);
              int od62=Integer.parseInt(ord62);
              int od72=Integer.parseInt(ord72);
              int od82=Integer.parseInt(ord82);
              int od92=Integer.parseInt(ord92);
              int od102=Integer.parseInt(ord102);
              int od112=Integer.parseInt(ord112);
              int od122=Integer.parseInt(ord122);
 
              String ord23=tab1.order23.getText();
              String ord33=tab1.order33.getText();
              String ord43=tab1.order43.getText();
              String ord53=tab1.order53.getText();
              String ord63=tab1.order63.getText();
              String ord73=tab1.order73.getText();
              String ord83=tab1.order83.getText();
              String ord93=tab1.order93.getText();
              String ord103=tab1.order103.getText();
              String ord113=tab1.order113.getText();
              String ord123=tab1.order123.getText();
 
              int od23=Integer.parseInt(ord23);
              int od33=Integer.parseInt(ord33);
              int od43=Integer.parseInt(ord43);
              int od53=Integer.parseInt(ord53);
              int od63=Integer.parseInt(ord63);
              int od73=Integer.parseInt(ord73);
              int od83=Integer.parseInt(ord83);
              int od93=Integer.parseInt(ord93);
              int od103=Integer.parseInt(ord103);
              int od113=Integer.parseInt(ord113);
              int od123=Integer.parseInt(ord123);
 
              String ord24=tab1.order24.getText();
              String ord34=tab1.order34.getText();
              String ord44=tab1.order44.getText();
              String ord54=tab1.order54.getText();
              String ord64=tab1.order64.getText();
              String ord74=tab1.order74.getText();
              String ord84=tab1.order84.getText();
              String ord94=tab1.order94.getText();
              String ord104=tab1.order104.getText();
              String ord114=tab1.order114.getText();
              String ord124=tab1.order124.getText();
 
              int od24=Integer.parseInt(ord24);
              int od34=Integer.parseInt(ord34);
              int od44=Integer.parseInt(ord44);
              int od54=Integer.parseInt(ord54);
              int od64=Integer.parseInt(ord64);
              int od74=Integer.parseInt(ord74);
              int od84=Integer.parseInt(ord84);
              int od94=Integer.parseInt(ord94);
              int od104=Integer.parseInt(ord104);
              int od114=Integer.parseInt(ord114);
              int od124=Integer.parseInt(ord124);
 
              String ord25=tab1.order25.getText();
              String ord35=tab1.order35.getText();
              String ord45=tab1.order45.getText();
              String ord55=tab1.order55.getText();
              String ord65=tab1.order65.getText();
              String ord75=tab1.order75.getText();
              String ord85=tab1.order85.getText();
              String ord95=tab1.order95.getText();
              String ord105=tab1.order105.getText();
              String ord115=tab1.order115.getText();
              String ord125=tab1.order125.getText();
 
              int od25=Integer.parseInt(ord25);
              int od35=Integer.parseInt(ord35);
              int od45=Integer.parseInt(ord45);
              int od55=Integer.parseInt(ord55);
              int od65=Integer.parseInt(ord65);
              int od75=Integer.parseInt(ord75);
              int od85=Integer.parseInt(ord85);
              int od95=Integer.parseInt(ord95);
              int od105=Integer.parseInt(ord105);
              int od115=Integer.parseInt(ord115);
              int od125=Integer.parseInt(ord125);
 
              String ord26=tab1.order26.getText();
              String ord36=tab1.order36.getText();
              String ord46=tab1.order46.getText();
              String ord56=tab1.order56.getText();
              String ord66=tab1.order66.getText();
              String ord76=tab1.order76.getText();
              String ord86=tab1.order86.getText();
              String ord96=tab1.order96.getText();
              String ord106=tab1.order106.getText();
              String ord116=tab1.order116.getText();
              String ord126=tab1.order126.getText();
 
              int od26=Integer.parseInt(ord26);
              int od36=Integer.parseInt(ord36);
              int od46=Integer.parseInt(ord46);
              int od56=Integer.parseInt(ord56);
              int od66=Integer.parseInt(ord66);
              int od76=Integer.parseInt(ord76);
              int od86=Integer.parseInt(ord86);
              int od96=Integer.parseInt(ord96);
              int od106=Integer.parseInt(ord106);
              int od116=Integer.parseInt(ord116);
              int od126=Integer.parseInt(ord126);
 
              String ord27=tab1.order27.getText();
              String ord37=tab1.order37.getText();
              String ord47=tab1.order47.getText();
              String ord57=tab1.order57.getText();
              String ord67=tab1.order67.getText();
              String ord77=tab1.order77.getText();
              String ord87=tab1.order87.getText();
              String ord97=tab1.order97.getText();
              String ord107=tab1.order107.getText();
              String ord117=tab1.order117.getText();
              String ord127=tab1.order127.getText();
 
              int od27=Integer.parseInt(ord27);
              int od37=Integer.parseInt(ord37);
              int od47=Integer.parseInt(ord47);
              int od57=Integer.parseInt(ord57);
              int od67=Integer.parseInt(ord67);
              int od77=Integer.parseInt(ord77);
              int od87=Integer.parseInt(ord87);
              int od97=Integer.parseInt(ord97);
              int od107=Integer.parseInt(ord107);
              int od117=Integer.parseInt(ord117);
              int od127=Integer.parseInt(ord127);
 
              String ord28=tab1.order28.getText();
              String ord38=tab1.order38.getText();
              String ord48=tab1.order48.getText();
              String ord58=tab1.order58.getText();
              String ord68=tab1.order68.getText();
              String ord78=tab1.order78.getText();
              String ord88=tab1.order88.getText();
              String ord98=tab1.order98.getText();
              String ord108=tab1.order108.getText();
              String ord118=tab1.order118.getText();
              String ord128=tab1.order128.getText();
 
              int od28=Integer.parseInt(ord28);
              int od38=Integer.parseInt(ord38);
              int od48=Integer.parseInt(ord48);
              int od58=Integer.parseInt(ord58);
              int od68=Integer.parseInt(ord68);
              int od78=Integer.parseInt(ord78);
              int od88=Integer.parseInt(ord88);
              int od98=Integer.parseInt(ord98);
              int od108=Integer.parseInt(ord108);
              int od118=Integer.parseInt(ord118);
              int od128=Integer.parseInt(ord128);
 
              String ord29=tab1.order29.getText();
              String ord39=tab1.order39.getText();
              String ord49=tab1.order49.getText();
              String ord59=tab1.order59.getText();
              String ord69=tab1.order69.getText();
              String ord79=tab1.order79.getText();
              String ord89=tab1.order89.getText();
              String ord99=tab1.order99.getText();
              String ord109=tab1.order109.getText();
              String ord119=tab1.order119.getText();
              String ord129=tab1.order129.getText();
 
              int od29=Integer.parseInt(ord29);
              int od39=Integer.parseInt(ord39);
              int od49=Integer.parseInt(ord49);
              int od59=Integer.parseInt(ord59);
              int od69=Integer.parseInt(ord69);
              int od79=Integer.parseInt(ord79);
              int od89=Integer.parseInt(ord89);
              int od99=Integer.parseInt(ord99);
              int od109=Integer.parseInt(ord109);
              int od119=Integer.parseInt(ord119);
              int od129=Integer.parseInt(ord129);
 
              String ord210=tab1.order210.getText();
              String ord310=tab1.order310.getText();
              String ord410=tab1.order410.getText();
              String ord510=tab1.order510.getText();
              String ord610=tab1.order610.getText();
              String ord710=tab1.order710.getText();
              String ord810=tab1.order810.getText();
              String ord910=tab1.order910.getText();
              String ord1010=tab1.order1010.getText();
              String ord1110=tab1.order1110.getText();
              String ord1210=tab1.order1210.getText();
 
              int od210=Integer.parseInt(ord210);
              int od310=Integer.parseInt(ord310);
              int od410=Integer.parseInt(ord410);
              int od510=Integer.parseInt(ord510);
              int od610=Integer.parseInt(ord610);
              int od710=Integer.parseInt(ord710);
              int od810=Integer.parseInt(ord810);
              int od910=Integer.parseInt(ord910);
              int od1010=Integer.parseInt(ord1010);
              int od1110=Integer.parseInt(ord1110);
              int od1210=Integer.parseInt(ord1210);
 
              String med=medu.getText();
              String med22=cntmedu2.getText();
              String med23=cntmedu3.getText();
              String med24=cntmedu4.getText();
              String med25=cntmedu5.getText();
              String med26=cntmedu6.getText();
              String med27=cntmedu7.getText();
              String med28=cntmedu8.getText();
              String med29=cntmedu9.getText();
              int md=Integer.parseInt(med);
              int cnt2md2=Integer.parseInt(med22);
              int cnt2md3=Integer.parseInt(med23);
              int cnt2md4=Integer.parseInt(med24);
              int cnt2md5=Integer.parseInt(med25);
              int cnt2md6=Integer.parseInt(med26);
              int cnt2md7=Integer.parseInt(med27);
              int cnt2md8=Integer.parseInt(med28);
              int cnt2md9=Integer.parseInt(med29);
 
              String fed=fedu.getText();
              String fed22=cntfedu2.getText();
              String fed23=cntfedu3.getText();
              String fed24=cntfedu4.getText();
              String fed25=cntfedu5.getText();
              String fed26=cntfedu6.getText();
              String fed27=cntfedu7.getText();
              String fed28=cntfedu8.getText();
              String fed29=cntfedu9.getText();
              int fd=Integer.parseInt(fed);
              int cnt4fd2=Integer.parseInt(fed22);
              int cnt4fd3=Integer.parseInt(fed23);
              int cnt4fd4=Integer.parseInt(fed24);
              int cnt4fd5=Integer.parseInt(fed25);
              int cnt4fd6=Integer.parseInt(fed26);
              int cnt4fd7=Integer.parseInt(fed27);
              int cnt4fd8=Integer.parseInt(fed28);
              int cnt4fd9=Integer.parseInt(fed29);
 
                 String tabc41=tab1.orderc3210.getText();
                 String tabc42=tab1.orderc3310.getText();
                 String tabc43=tab1.orderc3410.getText();
                 String tabc44=tab1.orderc3510.getText();
                 String tabc45=tab1.orderc3610.getText();
                 String tabc46=tab1.orderc3710.getText();
                 String tabc47=tab1.orderc3810.getText();
                 String tabc48=tab1.orderc3910.getText();
                 String tabc49=tab1.orderc31010.getText();
                 String tabc410=tab1.orderc31110.getText();
                 String tabc411=tab1.orderc31210.getText();
                 int tab13=Integer.parseInt(tabc41);
                 int tab23=Integer.parseInt(tabc42);
                 int tab33=Integer.parseInt(tabc43);
                 int tab43=Integer.parseInt(tabc44);
                 int tab53=Integer.parseInt(tabc45);
                 int tab63=Integer.parseInt(tabc46);
                 int tab73=Integer.parseInt(tabc47);
                 int tab83=Integer.parseInt(tabc48);
                 int tab93=Integer.parseInt(tabc49);
                 int tab103=Integer.parseInt(tabc410);
                 int tab113=Integer.parseInt(tabc411);
 
              int counter=0;
              int count;
              int tott;
              int tot;
              int totts;
              int counted;
             if(cntsxd==1){
                 count=cntsxd2+1;
                 int male=count;
                 tab1.cnt4sex2.setText(""+male);
                 cntsex2.setText(""+male);
             }
            else if(cntsxd==2){
             count=cntsxd3+1;
            int female=count;
            tab1.cnt4sex3.setText(""+female);
            cntsex3.setText(""+female);
             }
             if(cntsxd2>0||cntsxd3>0){
             tot=1+cntsxd2+cntsxd3;
             int total=tot;
             tab1.cnt4sex4.setText(""+total);
             cntsex4.setText(""+total);
             }
             //Computation of Place of birth
             int plc;
             int plctot;
            if(pla==1){
                count=cnt2pla2+1;
                plc=count;
                tab1.cnt4place2.setText(""+plc);
              cntplace2.setText(""+plc);
            }
            else if(pla==2){
                count=cnt2pla3+1;
                plc=count;
                tab1.cnt4place3.setText(""+plc);
                cntplace3.setText(""+plc);
            }
            else if(pla==3){
                count=cnt2pla4+1;
               plc=count;
               tab1.cnt4place4.setText(""+plc);
               cntplace4.setText(""+plc);
            }
            else if(pla==4){
                count=cnt2pla5+1;
                plc=count;
                tab1.cnt4place5.setText(""+plc);
                cntplace5.setText(""+plc);
            }
             if(cnt2pla2>0||cnt2pla3>0||cnt2pla4>0||cnt2pla5>0){
 
                 tot=1+cnt2pla2+cnt2pla3+cnt2pla4+cnt2pla5;
                 plctot=tot;
                 tab1.cnt4place6.setText(""+plctot);
                 cntplace6.setText(""+plctot);
             }
             //Computation of birth order
             if(agd<15){
                 if(od==1){
                     counted=tab13+1;
                     count=od1+1;
                     totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                     order210.setText(""+totts);
                     order1.setText(""+count);
                     tab1.order1.setText(""+count);
                     tab1.order210.setText(""+totts);
                     tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od2+1;
                     order2.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order2.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od3+1;
                     order3.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order3.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od4+1;
                     order4.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order4.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od5+1;
                     order5.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order5.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od6+1;
                     order6.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order6.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od7+1;
                     order7.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order7.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od8+1;
                     order8.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order8.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od9+1;
                     order9.setText(""+counter);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order9.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od10+1;
                     order10.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order10.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 if(od>0){
                     counted=tab113+1;
                     tot=1+od1+od2+od3+od4+od5+od6+od7+od8+od9+od10;
                     order11.setText(""+tot);
                     totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                     order1210.setText(""+totts);
                     tab1.order11.setText(""+tot);
                     tab1.order1210.setText(""+totts);
                     tab1.orderc41210.setText(""+counted);
                 }
             }
             if(agd>=15&&agd<20){
                 if(od==1){
                 counted=tab13+1;
                 count=od21+1;
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order21.setText(""+count);
                 order210.setText(""+totts);
                 tab1.order21.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
              else if(od==2){
                 counted=tab23+1;
                 count=od31+1;
                 order31.setText(""+count);
                 totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                 order310.setText(""+totts);
                 tab1.order31.setText(""+count);
                 tab1.order310.setText(""+totts);
                 tab1.orderc4310.setText(""+counted);
             }
              else if(od==3){
                  counted=tab33+1;
                  count=od41+1;
                  order41.setText(""+count);
                  totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                  order410.setText(""+totts);
                  tab1.order41.setText(""+count);
                  tab1.order410.setText(""+totts);
                  tab1.orderc4410.setText(""+counted);
              }
              else if(od==4){
                  counted=tab43+1;
                  count=od51+1;
                  order51.setText(""+count);
                  totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                  order510.setText(""+totts);
                  tab1.order51.setText(""+count);
                  tab1.order510.setText(""+totts);
                  tab1.orderc4510.setText(""+counted);
              }
              else if(od==5){
                  counted=tab53+1;
                  count=od61+1;
                  order61.setText(""+count);
                  totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                  order610.setText(""+totts);
                  tab1.order61.setText(""+count);
                  tab1.order610.setText(""+totts);
                  tab1.orderc4610.setText(""+counted);
              }
              else if(od==6){
                  counted=tab63+1;
                  count=od71+1;
                  order71.setText(""+count);
                  totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                  order710.setText(""+totts);
                  tab1.order71.setText(""+count);
                  tab1.order710.setText(""+totts);
                  tab1.orderc4710.setText(""+counted);
              }
              else if(od==7){
                  counted=tab73+1;
                  count=od81+1;
                  order81.setText(""+count);
                  totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                  order810.setText(""+totts);
                  tab1.order81.setText(""+count);
                  tab1.order810.setText(""+totts);
                  tab1.orderc4810.setText(""+counted);
              }
              else if(od==8){
                  counted=tab83+1;
                  count=od91+1;
                  order91.setText(""+count);
                  totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                  order910.setText(""+totts);
                  tab1.order91.setText(""+count);
                  tab1.order910.setText(""+totts);
                  tab1.orderc4910.setText(""+counted);
              }
              else if(od==9){
                  counted=tab93+1;
                  count=od101+1;
                  order101.setText(""+count);
                  totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                  order1010.setText(""+totts);
                  tab1.order101.setText(""+count);
                  tab1.order1010.setText(""+totts);
                  tab1.orderc41010.setText(""+counted);
              }
              else if(od>=10){
                  counted=tab103+1;
                  count=od111+1;
                  order111.setText(""+count);
                  totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                  order1110.setText(""+totts);
                  tab1.order111.setText(""+count);
                  tab1.order1110.setText(""+totts);
                  tab1.orderc41110.setText(""+counted);
              }
                 counted=tab113+1;
             tot=1+od21+od31+od41+od51+od61+od71+od81+od91+od101+od111;
             order121.setText(""+tot);
             totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
             order1210.setText(""+totts);
             tab1.order121.setText(""+tot);
             tab1.order1210.setText(""+totts);
             tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=20&&agd<25){
                 counted=tab13+1;
                 if(od==1){
                 count=od22+1;
                 order22.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order22.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od32+1;
                     order32.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order32.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od42+1;
                     order42.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order42.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od52+1;
                     order52.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order52.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od62+1;
                     order62.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order62.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od72+1;
                     order72.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order72.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od82+1;
                     order82.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order82.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od92+1;
                     order92.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order92.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od102+1;
                     order102.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order102.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od112+1;
                     order112.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order112.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab13+1;
                 tot=1+od22+od32+od42+od52+od62+od72+od82+od92+od102+od112;
                 order122.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order122.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=25&&agd<30){
                 counted=tab13+1;
                 if(od==1){
                 count=od23+1;
                 order23.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order23.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od33+1;
                     order33.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order33.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od43+1;
                     order43.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order43.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od53+1;
                     order53.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order53.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od63+1;
                     order63.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order63.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od73+1;
                     order73.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order73.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od83+1;
                     order83.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order83.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od93+1;
                     order93.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order93.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od103+1;
                     order103.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order103.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od113+1;
                     order113.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order113.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od23+od33+od43+od53+od63+od73+od83+od93+od103+od113;
                 order123.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order123.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=30&&agd<35){
                 counted=tab13+1;
                 if(od==1){
                 count=od24+1;
                 order24.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order24.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od34+1;
                     order34.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order34.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od44+1;
                     order44.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order44.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od54+1;
                     order54.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order54.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od64+1;
                     order64.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order64.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od74+1;
                     order74.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order74.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od84+1;
                     order84.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order84.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od94+1;
                     order94.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order94.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od104+1;
                     order104.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order104.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od114+1;
                     order114.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order114.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od24+od34+od44+od54+od64+od74+od84+od94+od104+od114;
                 order124.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order124.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=35&&agd<40){
                 counted=tab13+1;
                 if(od==1){
                 count=od25+1;
                 order25.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order25.setText(""+count);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od35+1;
                     order35.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order35.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od45+1;
                     order45.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order45.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od55+1;
                     order55.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order55.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od65+1;
                     order65.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order65.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od75+1;
                     order75.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order75.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od85+1;
                     order85.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order85.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od95+1;
                     order95.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order95.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od105+1;
                     order105.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order105.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od115+1;
                     order115.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order115.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od25+od35+od45+od55+od65+od75+od85+od95+od105+od115;
                 order125.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order125.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=40&&agd<45){
                 counted=tab13+1;
                 if(od==1){
                 count=od26+1;
                 order26.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order26.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od32+1;
                     order36.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order36.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od46+1;
                     order46.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order46.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od56+1;
                     order56.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order56.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od66+1;
                     order66.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order66.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od76+1;
                     order76.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order76.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od86+1;
                     order86.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order86.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od96+1;
                     order96.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order96.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od106+1;
                     order106.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order106.setText(""+counted);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+totts);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od116+1;
                     order116.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order116.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od26+od36+od46+od56+od66+od76+od86+od96+od106+od116;
                 order126.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order126.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=45&&agd<50){
                 if(od==1){
                     counted=tab13+1;
                 count=od27+1;
                 order27.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order27.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od32+1;
                     order37.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order37.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc3310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab23+1;
                     count=od47+1;
                     order47.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order47.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od57+1;
                     order57.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order57.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od67+1;
                     order67.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order67.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od77+1;
                     order77.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order77.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od87+1;
                     order87.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order87.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od97+1;
                     order97.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order97.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od107+1;
                     order107.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order107.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab13+1;
                     count=od117+1;
                     order117.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order117.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od27+od37+od47+od57+od67+od77+od87+od97+od107+od117;
                 order127.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order127.setText(""+tot);
                 tab1.order1210.setText(""+totts);
                 tab1.orderc41210.setText(""+counted);
             }
             else if(agd>=50){
                 if(od==1){
                     counted=tab13+1;
                 count=od28+1;
                 order28.setText(""+count);
                 totts=1+od1+od21+od22+od23+od24+od25+od26+od27+od28;
                 order210.setText(""+totts);
                 tab1.order28.setText(""+count);
                 tab1.order210.setText(""+totts);
                 tab1.orderc4210.setText(""+counted);
                 }
                 else if(od==2){
                     counted=tab23+1;
                     count=od38+1;
                     order38.setText(""+count);
                     totts=1+od2+od31+od32+od33+od34+od35+od36+od37+od38;
                     order310.setText(""+totts);
                     tab1.order38.setText(""+count);
                     tab1.order310.setText(""+totts);
                     tab1.orderc4310.setText(""+counted);
                 }
                 else if(od==3){
                     counted=tab33+1;
                     count=od48+1;
                     order48.setText(""+count);
                     totts=1+od3+od41+od42+od43+od44+od45+od46+od47+od48;
                     order410.setText(""+totts);
                     tab1.order48.setText(""+count);
                     tab1.order410.setText(""+totts);
                     tab1.orderc4410.setText(""+counted);
                 }
                 else if(od==4){
                     counted=tab43+1;
                     count=od58+1;
                     order58.setText(""+count);
                     totts=1+od4+od51+od52+od53+od54+od55+od56+od57+od58;
                     order510.setText(""+totts);
                     tab1.order58.setText(""+count);
                     tab1.order510.setText(""+totts);
                     tab1.orderc4510.setText(""+counted);
                 }
                 else if(od==5){
                     counted=tab53+1;
                     count=od68+1;
                     order68.setText(""+count);
                     totts=1+od5+od61+od62+od63+od64+od65+od66+od67+od68;
                     order610.setText(""+totts);
                     tab1.order68.setText(""+count);
                     tab1.order610.setText(""+totts);
                     tab1.orderc4610.setText(""+counted);
                 }
                 else if(od==6){
                     counted=tab63+1;
                     count=od78+1;
                     order78.setText(""+count);
                     totts=1+od6+od71+od72+od73+od74+od75+od76+od77+od78;
                     order710.setText(""+totts);
                     tab1.order78.setText(""+count);
                     tab1.order710.setText(""+totts);
                     tab1.orderc4710.setText(""+counted);
                 }
                 else if(od==7){
                     counted=tab73+1;
                     count=od88+1;
                     order88.setText(""+count);
                     totts=1+od7+od81+od82+od83+od84+od85+od86+od87+od88;
                     order810.setText(""+totts);
                     tab1.order88.setText(""+count);
                     tab1.order810.setText(""+totts);
                     tab1.orderc4810.setText(""+counted);
                 }
                 else if(od==8){
                     counted=tab83+1;
                     count=od98+1;
                     order98.setText(""+count);
                     totts=1+od8+od91+od92+od93+od94+od95+od96+od97+od98;
                     order910.setText(""+totts);
                     tab1.order98.setText(""+count);
                     tab1.order910.setText(""+totts);
                     tab1.orderc4910.setText(""+counted);
                 }
                 else if(od==9){
                     counted=tab93+1;
                     count=od108+1;
                     order108.setText(""+count);
                     totts=1+od9+od101+od102+od103+od104+od105+od106+od107+od108;
                     order1010.setText(""+totts);
                     tab1.order108.setText(""+count);
                     tab1.order1010.setText(""+totts);
                     tab1.orderc41010.setText(""+counted);
                 }
                 else if(od>=10){
                     counted=tab103+1;
                     count=od118+1;
                     order118.setText(""+count);
                     totts=1+od10+od111+od112+od113+od114+od115+od116+od117+od118;
                     order1110.setText(""+totts);
                     tab1.order118.setText(""+count);
                     tab1.order1110.setText(""+totts);
                     tab1.orderc41110.setText(""+counted);
                 }
                 counted=tab113+1;
                 tot=1+od28+od38+od48+od58+od68+od78+od88+od98+od108+od118;
                 order128.setText(""+tot);
                 totts=1+od11+od121+od122+od123+od124+od125+od126+od127+od128;
                 order1210.setText(""+totts);
                 tab1.order128.setText(""+tot);
                  tab1.order1210.setText(""+totts);
                  tab1.orderc41210.setText(""+counted);
             }
             if(md==1){
                 count=cnt2md2+1;
                 cntmedu2.setText(""+count);
                 tab1.cnt4medu2.setText(""+count);
             }
             else if(md==2){
                 count=cnt2md3+1;
                 cntmedu3.setText(""+count);
                 tab1.cnt4medu3.setText(""+count);
             }
             else if(md==3){
                 count=cnt2md4+1;
                 counter=count;
                 cntmedu4.setText(""+count);
                 tab1.cnt4medu4.setText(""+count);
             }
             else if(md==4){
                 count=cnt2md5+1;
                 cntmedu5.setText(""+count);
                 tab1.cnt4medu5.setText(""+count);
             }
             else if(md==6){
                 count=cnt2md6+1;
                 cntmedu6.setText(""+count);
                 tab1.cnt4medu6.setText(""+count);
             }
             else if(md==7){
                 count=cnt2md7+1;
                 cntmedu7.setText(""+count);
                 tab1.cnt4medu7.setText(""+count);
             }
             else if(md==8){
                 count=cnt2md8+1;
                 counter=count;
                 cntmedu8.setText(""+count);
                 tab1.cnt4medu8.setText(""+count);
             }
             else if(md==0){
                 count=cnt2md9+1;
                 cntmedu9.setText(""+count);
                 tab1.cnt4medu9.setText(""+count);
             }
             if(fd==1){
                 count=cnt4fd2+1;
                 cntfedu2.setText(""+count);
                 tab1.cnt4fedu2.setText(""+count);
             }
             else if(fd==2){
                 count=cnt4fd3+1;
                 cntfedu3.setText(""+count);
                 tab1.cnt3fedu3.setText(""+count);
             }
             else if(fd==3){
                 count=cnt4fd4+1;
                 cntfedu4.setText(""+count);
                 tab1.cnt4fedu4.setText(""+count);
             }
             else if(fd==4){
                 count=cnt4fd5+1;
                 cntfedu5.setText(""+count);
                 tab1.cnt4fedu5.setText(""+count);
             }
             else if(fd==6){
                 count=cnt4fd6+1;
                 cntfedu6.setText(""+count);
                 tab1.cnt4fedu6.setText(""+count);
             }
             else if(fd==7){
                 count=cnt4fd7+1;
                 cntfedu7.setText(""+count);
                 tab1.cnt4fedu7.setText(""+count);
             }
             else if(fd==8){
                 count=cnt4fd8+1;
                 cntfedu8.setText(""+count);
                 tab1.cnt4fedu8.setText(""+count);
             }
             else if(fd==0){
                 count=cnt4fd9+1;
                 cntfedu9.setText(""+count);
                 tab1.cnt4fedu9.setText(""+count);
             }
                  }
                   catch(Exception ax){
 
                   }
              }
                  else
                       if(cnt2.isSelected()==false && cnt3.isSelected()==false && cnt4.isSelected()==false){
             JOptionPane.showMessageDialog(null, "Please Select appropriate Centre to continue");
         }
              }
          });
     }
       public void actionPerformed(ActionEvent ev){
           if(ev.getSource()==cntL1){
        cnt1.doClick();;
        cnt2.setSelected(false);
        cnt3.setSelected(false);
        cnt4.setSelected(false);
        cnt5.setSelected(false);
    }
    else if(ev.getSource()==cntL2){
        cnt2.doClick();
        cnt1.setSelected(false);
        cnt3.setSelected(false);
        cnt4.setSelected(false);
        cnt5.setSelected(false);
        proc.setVisible(true);
        proc2.setVisible(false);
 
         cntsex2.setText("0");
        sex.setText("0");
        cntsex3.setText("0");
        cntsex4.setText("0");
 
        cntplace2.setText("0");
        cntplace3.setText("0");
        cntplace4.setText("0");
        cntplace5.setText("0");
        cntplace6.setText("0");
        cntplace7.setText("0");
 
        cntmedu2.setText("0");
        cntmedu3.setText("0");
        cntmedu4.setText("0");
        cntmedu5.setText("0");
        cntmedu6.setText("0");
        cntmedu7.setText("0");
        cntmedu8.setText("0");
        cntmedu9.setText("0");
 
        cntfedu2.setText("0");
        cntfedu3.setText("0");
        cntfedu4.setText("0");
        cntfedu5.setText("0");
        cntfedu6.setText("0");
        cntfedu7.setText("0");
        cntfedu8.setText("0");
        cntfedu9.setText("0");
    }
    else if(ev.getSource()==cntL3){
        cnt3.doClick();
        cnt1.setSelected(false);
        cnt2.setSelected(false);
        cnt4.setSelected(false);
        cnt5.setSelected(false);
 
        cntsex2.setText("0");
        sex.setText("0");
        cntsex3.setText("0");
        cntsex4.setText("0");
 
        cntplace2.setText("0");
        cntplace3.setText("0");
        cntplace4.setText("0");
        cntplace5.setText("0");
        cntplace6.setText("0");
        cntplace7.setText("0");
 
        cntmedu2.setText("0");
        cntmedu3.setText("0");
        cntmedu4.setText("0");
        cntmedu5.setText("0");
        cntmedu6.setText("0");
        cntmedu7.setText("0");
        cntmedu8.setText("0");
        cntmedu9.setText("0");
 
        cntfedu2.setText("0");
        cntfedu3.setText("0");
        cntfedu4.setText("0");
        cntfedu5.setText("0");
        cntfedu6.setText("0");
        cntfedu7.setText("0");
        cntfedu8.setText("0");
        cntfedu9.setText("0");
    }
    else if(ev.getSource()==cntL4){
        cnt4.doClick();
        cnt1.setSelected(false);
        cnt2.setSelected(false);
        cnt3.setSelected(false);
        cnt5.setSelected(false);
        proc2.setVisible(true);
        proc.setVisible(false);
 
        cntsex2.setText("0");
        sex.setText("0");
        cntsex3.setText("0");
        cntsex4.setText("0");
 
        cntplace2.setText("0");
        cntplace3.setText("0");
        cntplace4.setText("0");
        cntplace5.setText("0");
        cntplace6.setText("0");
        cntplace7.setText("0");
 
        cntmedu2.setText("0");
        cntmedu3.setText("0");
        cntmedu4.setText("0");
        cntmedu5.setText("0");
        cntmedu6.setText("0");
        cntmedu7.setText("0");
        cntmedu8.setText("0");
        cntmedu9.setText("0");
 
        cntfedu2.setText("0");
        cntfedu3.setText("0");
        cntfedu4.setText("0");
        cntfedu5.setText("0");
        cntfedu6.setText("0");
        cntfedu7.setText("0");
        cntfedu8.setText("0");
        cntfedu9.setText("0");
    }
    else if(ev.getSource()==cntL5){
        cnt5.doClick();
        cnt1.setSelected(false);
        cnt2.setSelected(false);
        cnt3.setSelected(false);
        cnt4.setSelected(false);
 
    }
 
      }
       }