PatientsPanel(ResultsDisplay x){
			rd = x;
			setLayout(null);
			
			JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
			tabbedPane.setBounds(214, 5, 21, 21);
			add(tabbedPane);
			
			
			JButton btnQuery = new JButton("Green ID#");
			btnQuery.setBounds(22, 52, 117, 29);
			add(btnQuery);
			btnQuery.addActionListener(new ActionListener()
			{
				public void actionPerformed(ActionEvent e) {
					access.sql = "SELECT ID FROM PATIENTS WHERE NAME = 'GREEN'";
					access.readDataBase();
					
					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
					
				}
				
			});
			
			JButton btnQuery_1 = new JButton("ID#15 Name");
			btnQuery_1.setBounds(161, 52, 117, 29);
			add(btnQuery_1);
			btnQuery_1.addActionListener(new ActionListener()
			{
				public void actionPerformed(ActionEvent e) {
					access.sql = "SELECT NAME FROM PATIENTS WHERE ID = 15";
					access.readDataBase();
					
					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
					
				}
				
			});
			
			JButton btnQuery_2 = new JButton("Matt's Diagnosis");
			btnQuery_2.setBounds(309, 52, 117, 29);
			add(btnQuery_2);
			btnQuery_2.addActionListener(new ActionListener()
			{
				public void actionPerformed(ActionEvent e) {
					access.sql = "SELECT DIAGNOSIS FROM PATIENTS WHERE NAME = 'HOLDEFER'";
					access.readDataBase();
					
					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
					
				}
				
			});
			
			
			JButton btnQuery_3 = new JButton("Dr. Smith's Patients");
			btnQuery_3.setBounds(22, 115, 117, 29);
			add(btnQuery_3);
			btnQuery_3.addActionListener(new ActionListener()
			{
				public void actionPerformed(ActionEvent e) {
					access.sql = "SELECT NAME FROM PATIENTS WHERE ID IN" +
							"(SELECT PATIENTID FROM DP WHERE DRID = 1)" ;
					access.readDataBase();
					
					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
					
				}
				
			});
			
			JButton btnQuery_4 = new JButton("Insured");
			btnQuery_4.setBounds(161, 115, 117, 29);
			add(btnQuery_4);
			btnQuery_4.addActionListener(new ActionListener()
			{
				public void actionPerformed(ActionEvent e) {
					access.sql = "SELECT NAME FROM PATIENTS WHERE INSURANCE = 1";
					access.readDataBase();
					
					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
					
				}
				
			});
			
			JButton btnQuery_5 = new JButton("Floor2 Diagnosis");
			btnQuery_5.setBounds(309, 115, 117, 29);
			add(btnQuery_5);
			btnQuery_5.addActionListener(new ActionListener()
			{
				public void actionPerformed(ActionEvent e) {
					access.sql = "SELECT DIAGNOSIS FROM PATIENTS WHERE FLOOR = 2";
					access.readDataBase();
					
					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
					
				}
				
			});
			
			textField = new JTextField();
			textField.setBounds(22, 174, 256, 28);
			add(textField);
			textField.setColumns(10);
			
			JButton btnRunQuery = new JButton("Run Query");
			btnRunQuery.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					
					access.sql = textField.getText();
					access.readDataBase();

					try {
						//System.out.print(access.getResult());
						rd.setResult(access.getResult());
					} catch (SQLException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
				}
			});
			btnRunQuery.setBounds(309, 175, 117, 29);
			add(btnRunQuery);

			init();

		}