Skip to content
Snippets Groups Projects

Feedback/NoPhotosStored/DeleteNoSelectedPhotos

Merged Diderik Kramer requested to merge feat/AddFeedbackNoPhotos/SeachScene into dev
1 file
+ 4
6
Compare changes
  • Side-by-side
  • Inline
@@ -15,14 +15,13 @@ import javafx.scene.control.*;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.control.ChoiceBox;
import javafx.scene.text.Text;
import javafx.stage.Screen;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import javafx.scene.text.Text;
import javafx.stage.Screen;
/**
* Class for the Search scene
*/
@@ -82,15 +81,14 @@ class PhotosScene extends SceneBuilder {
* Sets up the scroll pane in the search scene with all the photos of the user
*/
private void setupImagesInAScrollPane(){
if(!photoList.isEmpty()) {
if (!photoList.isEmpty()) {
photoList.forEach(photo -> {
PhotoContainer photoContainer = new PhotoContainer(photo);
scrollPaneVBox.getChildren().add(photoContainer.getPhotoContainer());
photoContainerList.add(photoContainer);
checkBoxArrayList.add(photoContainer.getCheckBox());
});
}
else{
} else {
Text noPhotosText = new Text("No photos stored. You can upload photos in \"Upload\"");
Css.setText(17,noPhotosText);
scrollPaneVBox.getChildren().add(noPhotosText);
Loading