public void setProfileUserFromView(EditProfileFrame editProfileFrame) {
        if (profilUser == null) {
            profilUser = new ProfilUser();
        }
        profilUser.setNama(editProfileFrame.textFieldNama.getText());
        profilUser.setBeratBadan(Double.parseDouble(editProfileFrame.textFieldBeratBadan.getText()));
        profilUser.setJenisKelamin(editProfileFrame.comboBoxJenisKelamin.getSelectedItem().toString());
        profilUser.setTinggiBadan(Double.parseDouble(editProfileFrame.textFieldTinggiBadan.getText()));
        profilUser.setUmur(Integer.parseInt(editProfileFrame.textFieldUmur.getText()));
        profilUser.hitungBeratBadanRelative();
        
        Double kaloriHarian = profilUser.getKaloriHarian();
        if(kaloriHarian <= 1100){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(0));
        }
        else if(kaloriHarian <= 1300){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(1));
        }
        else if(kaloriHarian <= 1500){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(2));
        }
        else if(kaloriHarian <= 1700){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(3));
        }
        else if(kaloriHarian <= 1900){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(4));
        }
        else if(kaloriHarian <= 2100){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(5));
        }
        else if(kaloriHarian <= 2300){
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(6));
        }
        else {
            DataSingleton.getInstance().setTotalGiziMakanan(DataSingleton.getInstance().getListTotalGiziMakanan().get(7));
        }
        System.out.println(DataSingleton.getInstance().getTotalGiziMakanan().getNamaDiet());
        JOptionPane.showConfirmDialog(null, "Sukses edit user", "Pesan", JOptionPane.OK_OPTION);
        setChanged();
        notifyObservers();
    }