public SubmissionView(int mode, final ClientView cv,
			SubmissionTableModel model) {
		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

		JScrollPane scrollPane = new JScrollPane();

		// If client
		if (mode == AS_CLIENT) {
			// Show submit button
			btnSubmitCode = new JButton("Submit Code");
			btnSubmitCode.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					// Show the submit form
					cv.submitMode(true);
				}
			});
			btnSubmitCode.setAlignmentX(Component.CENTER_ALIGNMENT);
			add(btnSubmitCode);
		}

		table = new JTable();
		table.setModel(model);

		scrollPane.getViewport().add(table, null);

		add(scrollPane);

	}