public List<DefaultMutableTreeNode> populirajTabele(DefaultMutableTreeNode tab, DefaultMutableTreeNode vie, DefaultMutableTreeNode sys, DefaultMutableTreeNode syn, String baza) 
	{
		List<DefaultMutableTreeNode> listaCvorova = new ArrayList<DefaultMutableTreeNode>();
		
		try {
			
			String[] tipoviObjekataTab = {"TABLE"};
			String[] tipoviObjekataVie = {"VIEW"};
			String[] tipoviObjekataSys = {"SYSTEM TABLE"};
			String[] tipoviObjekataSyn = {"SYNONYM"};

			DatabaseMetaData mp = Konekcija.getKonekcija().getMetaData();
			ResultSet rsTab = mp.getTables(baza, "%", "%", tipoviObjekataTab);
			ResultSet rsVie = mp.getTables(baza, "%", "%", tipoviObjekataVie);
			ResultSet rsSys = mp.getTables(baza, "%", "%", tipoviObjekataSys);
			ResultSet rsSyn = mp.getTables(baza, "%", "%", tipoviObjekataSyn);
			
			int i = 0; // Kupljenje samo 200 slogova
			
			while (rsTab.next()) {
				
				DefaultMutableTreeNode cvor = new DefaultMutableTreeNode(rsTab.getString("TABLE_NAME"));
				tab.add(cvor);
				i++;
				if(i>200)
					break;
			}
			i = 0;
			while (rsVie.next()) {

				DefaultMutableTreeNode cvor = new DefaultMutableTreeNode(rsVie.getString("TABLE_NAME"));
				vie.add(cvor);
				i++;
				if(i>200)
					break;
			}
			i = 0;
			while (rsSys.next()) {

				DefaultMutableTreeNode cvor = new DefaultMutableTreeNode(rsSys.getString("TABLE_NAME"));
				sys.add(cvor);
				i++;
				if(i>200)
					break;
			}
			i = 0;
			while (rsSyn.next()) {

				DefaultMutableTreeNode cvor = new DefaultMutableTreeNode(rsSyn.getString("TABLE_NAME"));
				syn.add(cvor);
				i++;
				if(i>200)
					break;
			}
			
			listaCvorova.add(tab);
			listaCvorova.add(vie);
			listaCvorova.add(sys);
			listaCvorova.add(syn);
			
		} catch (Exception e) {
			JOptionPane.showMessageDialog(null, e.getMessage());
			System.out.println(e);
		}
		
		return listaCvorova;
	}