private void search() {
			
			String searchPrototype = view.getSearchText().getText().trim();
			
			
            if (searchPrototype.length() > 0)
            {
            	boolean st = false;
            	boolean gp = false;
            	boolean de = false;
            	boolean prog = false;
            	boolean co = false;
            	boolean sec = false;
            	boolean sem = false;
            	boolean prof = false;
            	boolean res = false;
            	
            	ArrayList<Students> stu = new ArrayList<Students>();
            	ArrayList<GPA> g = new ArrayList<>();
            	
            	
            	if (searchPrototype.contains("Students"))
            		st = true;
            	

            	if (searchPrototype.contains("GPA"))
            		gp = true;
            	

            	if (searchPrototype.contains("Departments"))
            		de = true;
            	

            	if (searchPrototype.contains("Programs"))
            		prog = true;
            	
            	if (searchPrototype.contains("Courses"))
            		co = true;
            	

            	if (searchPrototype.contains("Section"))
            		sec = true;
            	

            	if (searchPrototype.contains("Semester"))
            		sem = true;
            	

            	if (searchPrototype.contains("Professors"))
            		prof = true;
            	
            	if (searchPrototype.contains("Research"))
            		res = true;
            	
            	
			    try {
					ResultSet rs = stat.executeQuery(searchPrototype);
					
					while (rs.next() && st) 
					{
						Students student = new Students(rs.getString("StudentID"), rs.getString("Name"), rs.getString("Email"), rs.getString("Address"), rs.getString("ProgramID"));
					    stu.add(student);
					}
				        

					
					
						
					
					students = stu;
					
					for(int i = 0; i < students.size(); i++)
						System.out.println(students.get(i).toString());
					

				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				
				
				update();
			}
            System.out.println("Search clicked");
		}