public void updateTextPanel()
	{
		textPanel.removeAll();
		studentMsg.removeAll();
		studentMsg=new JPanel();
		if(Integer.parseInt(studentNumberComboBox.getSelectedItem().toString())<5 || Student.studentListText.size()<=5)
			studentMsg.setLayout(new GridLayout(5,1,10,5));
		else
			studentMsg.setLayout(new BoxLayout(studentMsg, BoxLayout.Y_AXIS));
		
		studentMsg.setBackground(Color.white);
	
		for(int j=0;j<Integer.parseInt(studentNumberComboBox.getSelectedItem().toString()) && j<Student.studentListText.size();j++)
			studentMsg.add(createStudentTextMsgPanel(j,Student.studentListText.get(j)));
		
		textPanel.add(new JScrollPane(studentMsg),BorderLayout.CENTER);
		
		textPanel.setBackground(Color.WHITE);
		
		if(tabbedPane.getSelectedIndex()==0 && (Student.studentListAudio.size()-Integer.parseInt(studentNumberComboBox.getSelectedItem().toString()))>=0)
			waitingButton.setText("Waiting : "+(Student.studentListAudio.size()-Integer.parseInt(studentNumberComboBox.getSelectedItem().toString())));
		else if(tabbedPane.getSelectedIndex()==1 && (Student.studentListText.size()-Integer.parseInt(studentNumberComboBox.getSelectedItem().toString()))>=0)
			waitingButton.setText("Waiting : "+(Student.studentListText.size()-Integer.parseInt(studentNumberComboBox.getSelectedItem().toString())));
		else 
			waitingButton.setText("Waiting : 0");
	}