src/main/java/org/openjfx/ImageListController.java
private void updateDeleteHandlerVisibility(StackPane stackPane) {

        Node deleteButton = stackPane.lookup("." + StyleClass.NodeClassEnum.DeleteButton.toString());
        NodeUtil.setNodeVisibility(deleteButton, imageState.isEditing);

    }
/**
     * Delete button only show in Edit mode
     * @param stackPane
     */
Delete button only show in Edit mode
@param stackPane
Delete button only show in Edit mode @param stackPane
private void updateDeleteHandlerVisibility(StackPane stackPane) {
        Node deleteButton = stackPane.lookup("." + StyleClass.NodeClassEnum.DeleteButton.toString());
        NodeUtil.setNodeVisibility(deleteButton, imageState.isEditing);
    }
private void updateDeleteHandlerVisibility ( StackPane stackPane ) { Node deleteButton = stackPane . lookup ( "." + StyleClass . NodeClassEnum . DeleteButton . toString ( ) ) ; NodeUtil . setNodeVisibility ( deleteButton , imageState . isEditing ) ; }
Delete button only show in Edit mode
 @param stackPane
Delete button only show in Edit mode @param stackPane