public void loadLunchPrefs() {
		periodsFS = secondaryDataBase.amountOfPeriods;
		// getLunchPref
		boolean[][] lda = new boolean[secondaryDataBase.lunchPrefs.length][secondaryDataBase.lunchPrefs[0].length];

		for (int i = 0; i < lda.length; i++) {
			for (int b = 0; b < lda[0].length; b++) {
				lda[i][b] = secondaryDataBase.lunchPrefs[i][b];
			}
		}

		if (periodsFS == lda[0].length) {

			for (int x = 0; x < lda[0].length; x++) {

				if (lda[0][x] == true) {
					cb_09[x].setSelected(true);
				}
				if (lda[1][x] == true) {
					cb_10[x].setSelected(true);
				}
				if (lda[2][x] == true) {
					cb_11[x].setSelected(true);
				}
				if (lda[3][x] == true) {
					cb_12[x].setSelected(true);
				}

			}

		} else {
			// warning message shows user that the amount of periods changed, to
			// aviod errors, the file was not loaded
			JOptionPane.showMessageDialog(new JFrame("Periods do not match"),
					"The period amount have been changed",
					"Periods do not match", JOptionPane.ERROR_MESSAGE);

		}

	}