private void setSchedule(int userID)
    {
        String[] startTimes = new String[7];
        String[] endTimes = new String[7];
        String startDate = "";
        String endDate = "";
        int k = 0;
        
        DatabaseConnection db = new DatabaseConnection();
        Connection conn = db.connectToDB();
        String sql = "SELECT * FROM  `TASchedule` WHERE AssistantID = '" + userID + "' order by DayOfWeek asc";
        ResultSet rs = db.getResults(conn, sql);
        try {
            while(rs.next())
            {
                startTimes[k] = rs.getString("StartTime");
                endTimes[k] = rs.getString("EndTime");
                
                startDate = rs.getString("StartDate");
                endDate = rs.getString("EndDate");
                k++;
            }
        } catch (SQLException ex) {
            Logger.getLogger(ScheduleSelection.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        scheduleSelectStartDate.setText(startDate);
        scheduleSelectEndDate.setText(endDate);
        
        for(int j = 0; j < 1; j++)
        {
            for (int i =  1; i < 8; i++)
            {
                timeTable.setValueAt(startTimes[i-1], j, i);
            }
        }
        for(int j = 1; j < 2; j++)
        {
            for (int i =  1; i < 8; i++)
            {
                timeTable.setValueAt(endTimes[i-1], j, i);
            }
        }
        
    }