private void getData(){
		try {			  
			  cbSubject.removeAllItems();
			  cbObject.removeAllItems();
			  cbVerb.removeAllItems();
			  cbLocation.removeAllItems();
			  cbLocationObject.removeAllItems();
			  			  
			  ConnectDatabase cdb = new ConnectDatabase();
		        
		      ResultSet result = cdb.st.executeQuery("SELECT idsubjects, SubjectName FROM subjects");
		      cbSubject.addItem(new comboItem("", -1));
		      cbObject.addItem(new comboItem("", -1));
		 	  while(result.next()) {		        
		        cbSubject.addItem(new comboItem(result.getString("SubjectName"), result.getInt("idsubjects")));
		        cbObject.addItem(new comboItem(result.getString("SubjectName"), result.getInt("idsubjects")));
		      }
		 	 		      		      
		      result = cdb.st.executeQuery("SELECT idevents, EventName FROM events");
		      cbVerb.addItem(new comboItem("", -1));
			  while(result.next()) { 
		        cbVerb.addItem(new comboItem(result.getString("EventName"), result.getInt("idevents")));
		      }	  

			  result = cdb.st.executeQuery("SELECT idplaces, PlaceName FROM places");
		      cbLocation.addItem(new comboItem("", -1));
		      cbLocationObject.addItem(new comboItem("", -1));
			  while(result.next()) {
		        cbLocation.addItem(new comboItem(result.getString("PlaceName"), result.getInt("idplaces")));
		        cbLocationObject.addItem(new comboItem(result.getString("PlaceName"), result.getInt("idplaces")));
		      }		  
		      cdb.st.close();	
		    }
		    catch( Exception e ) {
		      e.printStackTrace();
		}
		
		ConnectDatabase cdb = new ConnectDatabase();        
		String Query = "SELECT IFNULL(subjects.SubjectTypesID,'-1') as SubjectTypesID, subjects.SubjectName, places.PlaceName, events.EventName, IFNULL(o.SubjectTypesID,'') as objTypesID, IFNULL(o.SubjectName, '') as ObjectName, IFNULL(po.PlaceName, '') as ObjPlaceName from sentences "
			+ " left join subjects on sentences.SubjectID = subjects.idsubjects"
		+ " left join subjects o on sentences.ObjectID = o.idsubjects"
		+ " left join events  on sentences.VerbID = events.idevents"
		+ " left join places on sentences.LocationID = places.idplaces" 
		+ " left join places po on sentences.LocationObjectID = po.idplaces ";
		try	{
			ResultSet result = cdb.st.executeQuery(Query);			  			  
			String SubType = "-1", SubName, SubPlaceName, Verb, ObjName, ObjPlaceName, ObjType= "-1";	
			textPane.setText("");
			while(result.next()) {
				SubType = result.getString("SubjectTypesID");
				ObjType = result.getString("objTypesID");				
				SubName = result.getString("subjects.SubjectName");
				SubPlaceName = result.getString("places.PlaceName");
				Verb = result.getString("events.EventName");
				ObjName = result.getString("ObjectName");
				ObjPlaceName = result.getString("ObjPlaceName");				
				StyledDocument doc = textPane.getStyledDocument();
				System.out.println(SubName);
				System.out.println(SubType);
				try {
					Style style = textPane.addStyle("Style", null);
					if (SubType.equals("0")){
						StyleConstants.setForeground(style, Color.blue);}
					else{StyleConstants.setForeground(style, Color.red);}
					doc.insertString(doc.getLength(), SubName + "   ", style);
					StyleConstants.setForeground(style, Color.orange);
					doc.insertString(doc.getLength(), " (" + SubPlaceName + ") ", style);

					StyleConstants.setForeground(style, Color.gray);
					doc.insertString(doc.getLength(), Verb +"  ", style); 
				
					if (ObjType.equals("0")){
						StyleConstants.setForeground(style, Color.blue);}
					else{StyleConstants.setForeground(style, Color.red);}
					doc.insertString(doc.getLength(), ObjName, style);
				
					StyleConstants.setForeground(style, Color.orange);
					doc.insertString(doc.getLength(), " (" + ObjPlaceName + ") \n", style);				
				}	
				catch (BadLocationException ex){}			
			}
			cdb.st.close();
		}
		catch(SQLException ex){System.out.print(ex);}
		
	}