public IIbasics(int previousSession) {
		this.previousSession = previousSession;// always set at the start
		// set the title
		if (previousSession == 0) {
			setTitle("New Project");
		} else {
			setTitle("Project");
		}
		// set up the layout manager
		JPanel infoPanel = new JPanel(new GridBagLayout());
		// give it a black border
		infoPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
		// make a new GridBagConstraints
		GridBagConstraints gbc = new GridBagConstraints();
		// set this as content pane
		setContentPane(infoPanel);
		// set size
		// infoPanel.setPreferredSize(new Dimension(350, 270));
		// set exit
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		// Set insets
		gbc.insets = defaultInsets;

		int i = 0;

		// set the weights
		gbc.weightx = 0.0;
		gbc.weighty = 0.0;
		// set the fill
		gbc.fill = GridBagConstraints.BOTH;

		// ---------------Adding

		// add label: Name of the new project
		glb = new JLabel("Name of new project:");
		gbc.gridx = 0;
		gbc.gridy = i;
		infoPanel.add(glb, gbc);

		gbc.weightx = 1.0;
		// add Text Field: for name of school - c_tf
		gbc.gridx = 1;
		gbc.gridy = i;
		infoPanel.add(c_tf, gbc);

		i++;// 1
		gbc.weightx = 0.0;
		// add label: Name of school
		glb = new JLabel("Name of school:");
		gbc.gridx = 0;
		gbc.gridy = i;
		// infoPanel.add(glb, gbc);

		// add Text Field: for name of school - a_tf
		// a_tf.setText("OLMC");
		gbc.gridx = 1;
		gbc.gridy = i;
		// infoPanel.add(a_tf, gbc);

		i++;// 2

		// add label: Number of Periods
		glb = new JLabel("Number of periods:");
		gbc.gridx = 0;
		gbc.gridy = i;
		infoPanel.add(glb, gbc);

		// add Text Field: for number of periods - b_tf

		gbc.gridx = 1;
		gbc.gridy = i;
		infoPanel.add(b_tf, gbc);
		if (previousSession == -1) {
			b_tf.setEnabled(false);
			// a_tf.setText(secondaryDataBase.nameOfSchool);
			b_tf.setText(Integer.toString(secondaryDataBase.amountOfPeriods));
			c_tf.setText(secondaryDataBase.projectName);
		}
		i++;// 3

		// add label: Number of grades in the school
		glb = new JLabel("Number of grades:");
		gbc.gridx = 0;
		gbc.gridy = i;
		// infoPanel.add(glb, gbc);

		// add RadioButtons
		gbc.gridx = 1;
		gbc.gridy = i;
		// infoPanel.add(gradeNumPanel(), gbc);

		i++;// 4

		// add label: Number of grades in the school
		glb = new JLabel("School starts at which grade:");
		gbc.gridx = 0;
		gbc.gridy = i;
		// infoPanel.add(glb, gbc);

		// add Text Field: for number of grades - e_tf
		gbc.gridx = 1;
		gbc.gridy = i;
		// infoPanel.add(e_tf, gbc);

		i++;// 5

		// add label: Number of grades in the school
		glb = new JLabel("Number of semesters:");
		gbc.gridx = 0;
		gbc.gridy = i;
		// infoPanel.add(glb, gbc);

		// add Text Field: for number of semesters - d_tf
		gbc.gridx = 1;
		gbc.gridy = i;
		// infoPanel.add(d_tf, gbc);

		i++;// 6

		// ------------------------------------Buttons

		gbc.gridwidth = 1;
		ca_Btn = new JButton("Clear All");
		gbc.gridx = 0;
		gbc.gridy = i;
		gbc.gridwidth = 2;
		infoPanel.add(ca_Btn, gbc);
		if (previousSession == -1) {// if editing fileName (constructed from
									// editMenu)
			ca_Btn.setEnabled(false);
		}
		i++;

		cancel_Btn = new JButton("Cancel");
		gbc.gridx = 0;
		gbc.gridy = i;
		gbc.gridwidth = 1;
		infoPanel.add(cancel_Btn, gbc);

		next_Btn = new JButton("Next");
		gbc.gridx = 1;
		gbc.gridy = i;
		infoPanel.add(next_Btn, gbc);

		// ----------------------------------Add Action Listeners
		ca_Btn.addActionListener(new clearAllBtnClick());
		next_Btn.addActionListener(new setLunchPrefernces());
		if (previousSession == -1) {
			next_Btn.setText("Update");
		}
		cancel_Btn.addActionListener(new cancelClick());

		// ---------------------------Loading

		// TODO: Fix loading

		// previousSession is 1: previous template (session) will be loaded
		// Use: when user want to edit everything from start to finish
		// **The Time Table will be refreshed**
		if (previousSession == 1) {

			loadPreviousSession();
			IIcourses.checkLoad(true);
			IIroomsAndDepts.checkLoad(true);
			IIlunchPrefs.checkLoad(true);

		}

		// previousSession is 2: only the previous session for this frame will
		// be loaded
		// Use: when back is clicked from the lunch preferences frame
		else if (previousSession == 2) {
			loadPreviousSession();
		}

		// previousSession is 0: user gets a blank template
		else if (previousSession == 0) {
			IIcourses.checkLoad(false);
			IIroomsAndDepts.checkLoad(false);
			IIlunchPrefs.checkLoad(false);
		}

		// anything else input will result in a blank template (Nothing will be
		// loaded)

		// ---------------Pack
		pack();

	}