src/main/java/org/openjfx/ImageListController.java
private void deletePhotoNode(ImageWrapper imageWrapper, Button deleteBtn) {
        if (!imageState.fileImageContainerHashMap.containsKey(imageWrapper.file)) {
            System.out.println("[WARN] Photo is not found in hashmap");
        }
        StackPane photoNode = imageState.fileImageContainerHashMap.get(imageWrapper.file);

        photoNode.setOpacity(imageWrapper.isMarkedToDelete ? 0.2 : 1);
        deleteBtn.setText(imageWrapper.isMarkedToDelete ? "Un-delete" : "Remove");

    }
/**
     * Action on delete the photo
     *
     * @param imageWrapper
     * @param deleteBtn
     */
Action on delete the photo
@param imageWrapper
@param deleteBtn
Action on delete the photo @param imageWrapper @param deleteBtn
private void deletePhotoNode(ImageWrapper imageWrapper, Button deleteBtn) {
        if (!imageState.fileImageContainerHashMap.containsKey(imageWrapper.file)) {
            System.out.println("[WARN] Photo is not found in hashmap");
        }
        StackPane photoNode = imageState.fileImageContainerHashMap.get(imageWrapper.file);
        photoNode.setOpacity(imageWrapper.isMarkedToDelete ? 0.2 : 1);
        deleteBtn.setText(imageWrapper.isMarkedToDelete ? "Un-delete" : "Remove");
    }
private void deletePhotoNode ( ImageWrapper imageWrapper , Button deleteBtn ) { if ( ! imageState . fileImageContainerHashMap . containsKey ( imageWrapper . file ) ) { System . out . println ( "[WARN] Photo is not found in hashmap" ) ; } StackPane photoNode = imageState . fileImageContainerHashMap . get ( imageWrapper . file ) ; photoNode . setOpacity ( imageWrapper . isMarkedToDelete ? 0.2 : 1 ) ; deleteBtn . setText ( imageWrapper . isMarkedToDelete ? "Un-delete" : "Remove" ) ; }
Action on delete the photo
 @param imageWrapper
 @param deleteBtn
Action on delete the photo @param imageWrapper @param deleteBtn