public CreateEmployeeJPanel(int m, boolean isDriver) {
        list = new ArrayList<Employee>();
        list2 = new ArrayList<Franchise>();
        mode = m;
        this.isDriver = isDriver;
        initComponents();
        
        
        if (mode ==0) //Add mode
        {   
            listSelection.setEnabled(false);
            if(isDriver)
                jLabel1.setText("Add a driver");
            else
                jLabel1.setText("Add an Employee");
            
            setList2();
        }
        if(mode == 1)  //Edit mode
        {
            getListSelection();
            if(isDriver)
                jLabel1.setText("Edit a driver");
            else
                jLabel1.setText("Edit an Employee");
            listSelection.setEnabled(true);
            jButton3.setText("Update");
            jButton1.setEnabled(false);
        }
        
        if(mode == 2)  //Delete mode
        {
            getListSelection();
            if(isDriver)
                jLabel1.setText("Delete a driver");
            else
                jLabel1.setText("Delete an Employee");
            listSelection.setEnabled(true);
            jButton3.setText("Delete");
            jButton1.setEnabled(false);
            
            //We're in delete mode, so here we disable all the text boxes and combo boxes.
            //Don't worry, we can still use setText-- this only disables the user from editing it.
            //In other words, the text boxes are only for display purposes.
            jButton1.setEnabled(false);
            newEmployeeFirstName.setEnabled(false);
            newEmployeeLastName.setEnabled(false);
            newEmployeeAddress.setEnabled(false);
            newEmployeeCity.setEnabled(false);
            newEmployeeState.setEnabled(false);
            newEmployeeZip.setEnabled(false);
            newEmployeePhone.setEnabled(false);
            newEmployeeEmail.setEnabled(false);
            newEmployeeType.setEnabled(false);
            newEmployeeNum.setEnabled(false);
            
        }
        
        if(isDriver)
        {
            //change code here
            newEmployeeType.setSelectedIndex(2);
            newEmployeeType.setEnabled(false);
        }
        
        listSelection.setSize(28, 20);  //Make sure it doesn't get too fat
    }