private void submit(Schedule schedule, Teacher teacher)
	{
		String error = "";
		if(schedule == null)
		{
			error += " - schedule \n";
		}
		if(teacher.getId() <= 0)
		{
			error += " - teacher \n";
		}
		if(schedule != null && teacher.getId() > 0){
			//Component c = tabbedPane.getSelectedComponent();
			this.group_schedule.setSchedule(schedule);
			this.group_schedule.setTeacher(teacher);
			ScheduleSelectDialog.this.dispose();
	    	listener.returnGroup_schedule(this.group_schedule);
		}
		else
		{
			JOptionPane.showMessageDialog(this, "Please select: \n" + error);
		}
	}