public void update() {
        System.out.println("Updating resultpanel");
        hashedFiles = controller.getFiles();
        ArrayList<HashedFile> trackTemp = new ArrayList<>();

        for(HashedFile hashedFile : hashedFiles){
            if(hashedFile.amITracked() && myLocation == 1){
                trackTemp.add(hashedFile);
            }
        }
        for(HashedFile hashedFile : hashedFiles){
            if(!hashedFile.amITracked() && myLocation == 0){
                trackTemp.add(hashedFile);
            }
        }
        String s = "";

        for(HashedFile file : trackTemp) {
            s += file.getFileName() + "\n |\nmd5 --> " + file.getMd5Hash() + "\nsha1 --> " + file.getSha1Hash() + "\nsha256 -->" + file.getSha2Hash() + "\nsha512 --> " + file.getSha5Hash() + "\n\n";
        }
        //resultaatVeld.setText(g);
        resultaatVeld.setText(s);
    }