hello there, im having a problem with my code . .. . .
so this is my class 1:

package app.ui;

import java.awt.EventQueue;

import javax.naming.ldap.Rdn;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JScrollBar;



import java.awt.Color;
import java.awt.Font;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.border.EtchedBorder;

import app.model.ApplicationForm;
import app.model.MyUser;
import app.util.DatabaseConnect;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;



public class ApplicationForm1 {

    private JFrame frmApplicationForm1;
    private JTextField txtFname;
    private JTextField txtLname;
    private JTextField txtMI;
    private JTextField txtAge;
    private final ButtonGroup buttonGroup = new ButtonGroup();
    private JTextField txtPrimSchool;
    private JTextField txtSecSchool;
    private JTextField txtTertiarySch;
    private JTextField txtGradSch;
    private JTextField txtOthers;
    private JTextField txtEmpNo;
    private JRadioButton rdbtnMarried ;
    private JRadioButton rdbtnSingle ;
    private String lagyan="";
    private JButton btnNext ;
    private String dateMo="";
    JComboBox cmbPosition;
    private ApplicationForm meApplicationForm;

    /**
     * Launch the application.
     */
    public  void doOpenApplicationForm1() {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    ApplicationForm1 window = new ApplicationForm1();
                    window.frmApplicationForm1.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the application.
     */
    public ApplicationForm1() {
        initialize();
    }

    /**
     * Initialize the contents of the frame.
     */
    private void initialize() {
        frmApplicationForm1 = new JFrame();
        frmApplicationForm1.setBounds(100, 100, 1022, 658);
        frmApplicationForm1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frmApplicationForm1.getContentPane().setLayout(null);

        final JLabel lblDate = new JLabel("");
        lblDate.setForeground(new Color(250, 240, 230));
        lblDate.setFont(new Font("Arial", Font.BOLD, 16));
        lblDate.addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent arg0) {


                Calendar cal=new GregorianCalendar();
                int day=cal.get(Calendar.DAY_OF_MONTH);
                int year=cal.get(Calendar.YEAR);
                int month=cal.get(Calendar.MONDAY);
                dateMo=(month+1+"-"+(day)+"-"+year);
                lblDate.setText(dateMo);




            }
        });

        btnNext = new JButton();
        btnNext.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {

                System.out.println("Test1:i passed here" );
                setApplicationFormObject();
                System.out.println("Test2: i passed here");
                frmApplicationForm1.dispose();

            }
        });


        txtEmpNo = new JTextField();
        txtEmpNo.setEditable(false);
        txtEmpNo.setBounds(913, 89, 83, 35);
        frmApplicationForm1.getContentPane().add(txtEmpNo);
        txtEmpNo.setColumns(10);

        JLabel lblEmpNo = new JLabel("Employee Number:");
        lblEmpNo.setFont(new Font("Ravie", Font.BOLD, 14));
        lblEmpNo.setBounds(702, 88, 201, 23);
        frmApplicationForm1.getContentPane().add(lblEmpNo);
        btnNext.setIcon(new ImageIcon(ApplicationForm1.class.getResource("/app/resource/bgMo - Copy.png")));
        btnNext.setBorder(new EtchedBorder(EtchedBorder.RAISED, new Color(153, 204, 0), null));
        btnNext.setBackground(new Color(153, 204, 0));
        btnNext.setForeground(new Color(0, 0, 0));
        btnNext.setFont(new Font("Tahoma", Font.PLAIN, 26));
        btnNext.setBounds(674, 396, 160, 74);
        frmApplicationForm1.getContentPane().add(btnNext);

        txtOthers = new JTextField();
        txtOthers.setColumns(10);
        txtOthers.setBounds(606, 353, 319, 20);
        frmApplicationForm1.getContentPane().add(txtOthers);

        JLabel lblOthersVocational = new JLabel("Others/ Vocational:");
        lblOthersVocational.setFont(new Font("Ravie", Font.BOLD, 12));
        lblOthersVocational.setBounds(432, 352, 177, 23);
        frmApplicationForm1.getContentPane().add(lblOthersVocational);

        txtGradSch = new JTextField();
        txtGradSch.setColumns(10);
        txtGradSch.setBounds(606, 315, 319, 20);
        frmApplicationForm1.getContentPane().add(txtGradSch);

        JLabel lblGraduateSch = new JLabel("Graduate School:");
        lblGraduateSch.setFont(new Font("Ravie", Font.BOLD, 12));
        lblGraduateSch.setBounds(432, 318, 177, 23);
        frmApplicationForm1.getContentPane().add(lblGraduateSch);

        txtTertiarySch = new JTextField();
        txtTertiarySch.setColumns(10);
        txtTertiarySch.setBounds(606, 284, 319, 20);
        frmApplicationForm1.getContentPane().add(txtTertiarySch);

        JLabel lblTertiarySch = new JLabel("Tertiary School:");
        lblTertiarySch.setFont(new Font("Ravie", Font.BOLD, 12));
        lblTertiarySch.setBounds(432, 287, 177, 23);
        frmApplicationForm1.getContentPane().add(lblTertiarySch);

        txtSecSchool = new JTextField();
        txtSecSchool.setColumns(10);
        txtSecSchool.setBounds(606, 255, 319, 20);
        frmApplicationForm1.getContentPane().add(txtSecSchool);

        JLabel lblSecSchool = new JLabel("Secondary School:");
        lblSecSchool.setFont(new Font("Ravie", Font.BOLD, 12));
        lblSecSchool.setBounds(432, 258, 177, 23);
        frmApplicationForm1.getContentPane().add(lblSecSchool);

        txtPrimSchool = new JTextField();
        txtPrimSchool.setBounds(606, 231, 319, 20);
        frmApplicationForm1.getContentPane().add(txtPrimSchool);
        txtPrimSchool.setColumns(10);

        JLabel lblPrimarySchool = new JLabel("Primary School:");
        lblPrimarySchool.setFont(new Font("Ravie", Font.BOLD, 14));
        lblPrimarySchool.setBounds(432, 230, 177, 23);
        frmApplicationForm1.getContentPane().add(lblPrimarySchool);

        JLabel lblEducationalBackground = new JLabel("Educational Background");
        lblEducationalBackground.setForeground(new Color(255, 204, 153));
        lblEducationalBackground.setFont(new Font("Comic Sans MS", Font.BOLD, 23));
        lblEducationalBackground.setBounds(432, 188, 275, 35);
        frmApplicationForm1.getContentPane().add(lblEducationalBackground);

        JLabel lblPersonalInfo = new JLabel("Personal Information");
        lblPersonalInfo.setForeground(new Color(255, 204, 153));
        lblPersonalInfo.setFont(new Font("Comic Sans MS", Font.BOLD, 23));
        lblPersonalInfo.setBounds(63, 188, 247, 35);
        frmApplicationForm1.getContentPane().add(lblPersonalInfo);

        cmbPosition = new JComboBox();
        cmbPosition.setModel(new DefaultComboBoxModel(new String[] {"Service Crew", "Head Crew1", "Head Crew2", "Head Crew3"}));
        cmbPosition.setBounds(199, 393, 111, 20);
        frmApplicationForm1.getContentPane().add(cmbPosition);
        cmbPosition.addItemListener( new ItemListener() {

            @Override
        public void itemStateChanged(ItemEvent e) {
                if(e.getStateChange() == ItemEvent.SELECTED){

                    lagyan = cmbPosition.getSelectedItem().toString();
                    ApplicationForm applicationForm = new ApplicationForm();
                    System.out.println("Test3: "+ lagyan);
                    applicationForm.setPosition(lagyan);
                    System.out.println("Test4: "+ applicationForm.getPosition());
                }
            }
        });

        JLabel lblPosition = new JLabel("Position:");
        lblPosition.setFont(new Font("Ravie", Font.BOLD, 12));
        lblPosition.setBounds(70, 396, 89, 14);
        frmApplicationForm1.getContentPane().add(lblPosition);

        rdbtnMarried = new JRadioButton("Married");
        buttonGroup.add(rdbtnMarried);
        rdbtnMarried.setForeground(new Color(0, 0, 0));
        rdbtnMarried.setBounds(295, 367, 78, 23);
        frmApplicationForm1.getContentPane().add(rdbtnMarried);

        rdbtnSingle = new JRadioButton("Single");
        buttonGroup.add(rdbtnSingle);
        rdbtnSingle.setForeground(new Color(0, 0, 0));
        rdbtnSingle.setBounds(197, 367, 68, 23);
        frmApplicationForm1.getContentPane().add(rdbtnSingle);

        JLabel lblMarital_Status = new JLabel("Marital Status:");
        lblMarital_Status.setFont(new Font("Ravie", Font.BOLD, 12));
        lblMarital_Status.setBounds(50, 371, 144, 14);
        frmApplicationForm1.getContentPane().add(lblMarital_Status);

        txtAge = new JTextField();
        txtAge.setColumns(10);
        txtAge.setBounds(197, 340, 70, 20);
        frmApplicationForm1.getContentPane().add(txtAge);

        JLabel lblAge = new JLabel("Age:");
        lblAge.setFont(new Font("Ravie", Font.BOLD, 14));
        lblAge.setBounds(65, 340, 132, 14);
        frmApplicationForm1.getContentPane().add(lblAge);

        JLabel lblMi = new JLabel("Middle Initial:");
        lblMi.setFont(new Font("Ravie", Font.BOLD, 12));
        lblMi.setBounds(65, 313, 132, 24);
        frmApplicationForm1.getContentPane().add(lblMi);

        txtMI = new JTextField();
        txtMI.setColumns(10);
        txtMI.setBounds(197, 309, 31, 20);
        frmApplicationForm1.getContentPane().add(txtMI);

        txtLname = new JTextField();
        txtLname.setColumns(10);
        txtLname.setBounds(197, 284, 212, 20);
        frmApplicationForm1.getContentPane().add(txtLname);

        JLabel lblLname = new JLabel("Last Name:");
        lblLname.setFont(new Font("Ravie", Font.BOLD, 14));
        lblLname.setBounds(65, 284, 132, 14);
        frmApplicationForm1.getContentPane().add(lblLname);

        txtFname = new JTextField();
        txtFname.setFont(new Font("Tahoma", Font.PLAIN, 9));
        txtFname.setBounds(197, 256, 212, 20);
        frmApplicationForm1.getContentPane().add(txtFname);
        txtFname.setColumns(10);

        JLabel lblfname = new JLabel("First Name:");
        lblfname.setFont(new Font("Ravie", Font.BOLD, 14));
        lblfname.setBounds(65, 259, 132, 14);
        frmApplicationForm1.getContentPane().add(lblfname);

        JLabel lblADate = new JLabel("Date:");
        lblADate.setFont(new Font("Ravie", Font.BOLD, 14));
        lblADate.setBounds(65, 234, 70, 14);
        frmApplicationForm1.getContentPane().add(lblADate);

        JLabel lblApplicationForm = new JLabel("");
        lblApplicationForm.setIcon(new ImageIcon(ApplicationForm1.class.getResource("/app/resource/application form.png")));
        lblApplicationForm.setBounds(123, 11, 569, 159);
        frmApplicationForm1.getContentPane().add(lblApplicationForm);
        lblDate.setBounds(199, 234, 111, 14);
        frmApplicationForm1.getContentPane().add(lblDate);

        JLabel lblBgAddEmployee = new JLabel();
        lblBgAddEmployee.setIcon(new ImageIcon(ApplicationForm1.class.getResource("/app/resource/d.png")));
        lblBgAddEmployee.setBounds(-185, -108, 1198, 824);
        frmApplicationForm1.getContentPane().add(lblBgAddEmployee);
    }

    public void setApplicationFormObject(){
        ApplicationForm smApplicationForm = new ApplicationForm();
        System.out.println("Test5: i passed here");
        smApplicationForm.setDate(dateMo);
        smApplicationForm.setFname(txtFname.getText());
        smApplicationForm.setLname(txtLname.getText());
        smApplicationForm.setMI(txtMI.getText());
        smApplicationForm.setAge(Integer.parseInt(txtAge.getText()));
        if(rdbtnMarried.isSelected()){
            smApplicationForm.setMarital_Status("Married");
        }else if(rdbtnSingle.isSelected()){
            smApplicationForm.setMarital_Status("Single");
        }
        smApplicationForm.setPosition(cmbPosition.getSelectedItem().toString());
        smApplicationForm.setPrimarySchool(txtPrimSchool.getText());
        smApplicationForm.setSecondarySchool(txtSecSchool.getText());
        smApplicationForm.setTertiarySchool(txtTertiarySch.getText());
        smApplicationForm.setGraduateSchool(txtGradSch.getText());
        smApplicationForm.setOtherVoc(txtOthers.getText());

        ApplicationForm2 myApplicationForm2 = new ApplicationForm2();
        System.out.println("Test6: "+ smApplicationForm.getFname());
        DatabaseConnect myDatabaseConnect = new DatabaseConnect();
        System.out.println("Test7: "+ smApplicationForm.getFname());
        myApplicationForm2.doSend(smApplicationForm); /*Invoking the method*/
        System.out.println("Test8: "+ smApplicationForm.getFname());
        myApplicationForm2.doOpenApplicationForm2();
    }

}

THis is my class 2:

package app.ui;

import java.awt.EventQueue;

import javax.naming.ldap.Rdn;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import java.awt.Font;
import java.awt.Color;

import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.swing.JButton;
import javax.swing.ButtonGroup;
import javax.swing.SwingConstants;

import app.model.ApplicationForm;
import app.model.MyUser;
import app.util.DatabaseConnect;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ApplicationForm2 {

    private JFrame frame;
    private JTextField txthdykoc;
    private JTextField txthybffw;
    private JTextField txtExpSal;
    private final ButtonGroup buttonGroup = new ButtonGroup();
    JRadioButton rdbtnNo ;
    JRadioButton rdbtnYes ;
    private ApplicationForm smyApplicationForm;

    /**
     * Launch the application.
     */
    public void doOpenApplicationForm2() {
        EventQueue.invokeLater(new Runnable() {
            public void run() {

                try {
                    ApplicationForm2 window = new ApplicationForm2();
                    window.frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the application.
     */
    public ApplicationForm2() {
        initialize();
    }

    /**
     * Initialize the contents of the frame.
     */
    private void initialize() {
        frame = new JFrame();
        frame.setBounds(100, 100, 1022, 657);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().setLayout(null);

        JButton btnAddEmp = new JButton("");
        btnAddEmp.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                doSalin2();
                System.out.println("Test8: i passed here");
                DatabaseConnect myDatabaseConnect = new DatabaseConnect();
                myDatabaseConnect.connectMeToDatabase(smyApplicationForm);
            }
        });

        btnAddEmp.setForeground(new Color(255, 140, 0));
        btnAddEmp.setBackground(new Color(255, 69, 0));
        btnAddEmp.setIcon(new ImageIcon(ApplicationForm2.class.getResource("/app/resource/bgMo - Copy (2).png")));
        btnAddEmp.setBounds(31, 501, 262, 107);
        frame.getContentPane().add(btnAddEmp);

        txtExpSal = new JTextField();
        txtExpSal.setBounds(719, 406, 144, 20);
        frame.getContentPane().add(txtExpSal);
        txtExpSal.setColumns(10);

        JLabel lblExpectedSalary = new JLabel("Expected Salary:");
        lblExpectedSalary.setForeground(new Color(154, 205, 50));
        lblExpectedSalary.setFont(new Font("Comic Sans MS", Font.BOLD, 16));
        lblExpectedSalary.setBounds(565, 402, 144, 23);
        frame.getContentPane().add(lblExpectedSalary);

        rdbtnNo = new JRadioButton("No");
        buttonGroup.add(rdbtnNo);
        rdbtnNo.setBounds(719, 315, 53, 23);
        frame.getContentPane().add(rdbtnNo);

        rdbtnYes = new JRadioButton("Yes");
        buttonGroup.add(rdbtnYes);
        rdbtnYes.setBounds(656, 315, 53, 23);
        frame.getContentPane().add(rdbtnYes);

        JLabel lbldyhopwoc = new JLabel("Do have pending applications with other companies?");
        lbldyhopwoc.setForeground(new Color(154, 205, 50));
        lbldyhopwoc.setFont(new Font("Comic Sans MS", Font.BOLD, 16));
        lbldyhopwoc.setBounds(552, 285, 412, 23);
        frame.getContentPane().add(lbldyhopwoc);

        txthybffw = new JTextField();
        txthybffw.setColumns(10);
        txthybffw.setBounds(262, 385, 280, 62);
        frame.getContentPane().add(txthybffw);

        JLabel lblhybffw = new JLabel("Have you been fired from work?");
        lblhybffw.setForeground(new Color(154, 205, 50));
        lblhybffw.setFont(new Font("Comic Sans MS", Font.BOLD, 16));
        lblhybffw.setBounds(10, 385, 262, 23);
        frame.getContentPane().add(lblhybffw);

        txthdykoc = new JTextField();
        txthdykoc.setBounds(262, 285, 280, 62);
        frame.getContentPane().add(txthdykoc);
        txthdykoc.setColumns(10);

        JLabel lblhdykoc = new JLabel("How did you know our company?");
        lblhdykoc.setForeground(new Color(154, 205, 50));
        lblhdykoc.setFont(new Font("Comic Sans MS", Font.BOLD, 16));
        lblhdykoc.setBounds(10, 285, 262, 23);
        frame.getContentPane().add(lblhdykoc);

        JLabel lblEmpRec = new JLabel("Employee Record");
        lblEmpRec.setFont(new Font("Tahoma", Font.PLAIN, 25));
        lblEmpRec.setBounds(121, 233, 226, 55);
        frame.getContentPane().add(lblEmpRec);

        JLabel lblAppForm2 = new JLabel("");
        lblAppForm2.setIcon(new ImageIcon(ApplicationForm2.class.getResource("/app/resource/application form.png")));
        lblAppForm2.setBounds(213, 62, 569, 153);
        frame.getContentPane().add(lblAppForm2);

        JLabel lblBgAppForm2 = new JLabel("");
        lblBgAppForm2.setIcon(new ImageIcon(ApplicationForm2.class.getResource("/app/resource/d.png")));
        lblBgAppForm2.setBounds(-171, 0, 1200, 640);
        frame.getContentPane().add(lblBgAppForm2);
    }

    public void doSalin2(){
        System.out.println("Test9: i passed here");
        ApplicationForm pangAppForm = new ApplicationForm();
        pangAppForm.setHdykoc(txthdykoc.getText());
        pangAppForm.setHybffw(txthybffw.getText());
        if(rdbtnNo.isSelected()){
            pangAppForm.setDyhopwoc("No");
        }else if(rdbtnYes.isSelected()){
            pangAppForm.setDyhopwoc("Yes");
        }
        pangAppForm.setEs(txtExpSal.getText());
        System.out.println("Test10: "+ pangAppForm.getHdykoc());

        doSend(pangAppForm);    
    }
    public void doSend(ApplicationForm siApplicationForm){
        System.out.println("Test11: i passed here ");
          smyApplicationForm = siApplicationForm;
          DatabaseConnect please = new DatabaseConnect();
          System.out.println("Test12: i passed here ");
          please.connectMeToDatabase(smyApplicationForm);


    }
}

my class 3 where i will put all the data to databse:

package app.util;
import java.sql.*;

import app.model.ApplicationForm;
import app.model.MyUser;
public class DatabaseConnect {

 private static ApplicationForm applicationForm;

    public  void connectMeToDatabase(ApplicationForm myApplicationForm){
        String dataSourceName = "etoNa";
        String dbUrl = "jdbc:odbc:" + dataSourceName;
        try{
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

            Connection con= DriverManager.getConnection(dbUrl);

            Statement s= con.createStatement();
            //s.execute("create table School(Grade integer)"); //write sql


            System.out.println("Test1: "+ applicationForm.getFname());

s.execute("INSERT INTO Employee([dateOfEmployement],[fname],[lname],[MI],[age],[marital_Status]," +
        "[position],[primarySchool],[secondarySchool],[tertiarySchool],[graduateSchool],[otherVoc],[hdykoc],[hybffw],[dyhopwoc],[es] ) values ('"+applicationForm.getDate()+"','"+applicationForm.getFname()+"','"+applicationForm.getLname()+"','"+applicationForm.getMI()+"','"+applicationForm.getAge()+"'" +
                ",'"+applicationForm.getMarital_Status()+"','"+"ako"+"','"+applicationForm.getPrimarySchool()+"','"+applicationForm.getSecondarySchool()+"'" +
                        ",'"+applicationForm.getTertiarySchool()+"','"+applicationForm.getGraduateSchool()+"','"+applicationForm.getOtherVoc()+"','"+applicationForm.getHdykoc()+"','"+applicationForm.getHybffw()+"','"+applicationForm.getDyhopwoc()+"','"+applicationForm.getEs()+"')");

            s.execute("select  * from Employee");

        //s.execute("create table School2(Grade integer, Remark text)");
            //s.execute("insert into School2(Grade, Remark)values(87,'Pass')");
        //  s.execute("select Grade, Remark from School2");
            //s.execute("delete from School2 where Grade="+87+"");

            ResultSet   rs= s.getResultSet();

        /*  if(rs!=null){
                while(rs.next()){
                    System.out.println("Emp no: "+rs.getInt(1)+"Date "+ rs.getString(2)+" Fname: "+rs.getString(3)+"LName: "
                +rs.getString(4)+"MI: "+rs.getString(5));
                }
            }*/
            s.close();
            con.close();
        }catch(Exception e){
            e.printStackTrace();
        }
    }
    public void doSet(ApplicationForm myApplicationForm){
        applicationForm = myApplicationForm;
    }
}

and here's the error that im getting..

Test3: Head Crew2
Test4: Head Crew2
Test1:i passed here
Test5: i passed here
Test6: Vanilla
Test7: Vanilla
Test11: i passed here 
Test12: i passed here 
java.lang.NullPointerException
    at app.util.DatabaseConnect.connectMeToDatabase(DatabaseConnect.java:22)
    at app.ui.ApplicationForm2.doSend(ApplicationForm2.java:172)
    at app.ui.ApplicationForm1.setApplicationFormObject(ApplicationForm1.java:330)
    at app.ui.ApplicationForm1$3.actionPerformed(ApplicationForm1.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Test8: Vanilla
Test2: i passed here
Test9: i passed here
Test10: wef
Test11: i passed here 
Test12: i passed here 
java.lang.NullPointerException
    at app.util.DatabaseConnect.connectMeToDatabase(DatabaseConnect.java:22)
    at app.ui.ApplicationForm2.doSend(ApplicationForm2.java:172)
    at app.ui.ApplicationForm2.doSalin2(ApplicationForm2.java:165)
    at app.ui.ApplicationForm2$2.actionPerformed(ApplicationForm2.java:74)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Test8: i passed here
java.lang.NullPointerException
    at app.util.DatabaseConnect.connectMeToDatabase(DatabaseConnect.java:22)
    at app.ui.ApplicationForm2$2.actionPerformed(ApplicationForm2.java:77)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

please help me??? tell me ehat should i do, and guide me, thanks.

Looks like you have not initialized applicatonForm object in the DatabaseConnect class and you are trying to access without creating the ApplicationForm object..

i did, line no. 8 at the third class..

as harinath_2007 said

you have to call doSet(ApplicationForm myApplicationForm) method before calling connectMeToDatabase(ApplicationForm myApplicationForm) method
at where you are calling these methods

at line 8 you have declared but not instantiated yet

try to call doset() method before calling connectMeToDatabase() method

let me know if you have any doubts in my clarification

thats it

happy coding

System.out.println("Test1: "+ applicationForm.getFname());

my guess, you didn't set the value of applicationForm before calling the method in which this line is.
make sure you call the doSet(ApplicationForm applicationForm) method at initialization of your application

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.