From d62118e9c0b531ecc675d53608259caade3f4684 Mon Sep 17 00:00:00 2001 From: Dominik Gruntz Date: Fri, 3 Aug 2018 10:14:16 +0200 Subject: [PATCH] Replaces URL The URL http://www.free-nature-animal-butterfly-wallpaper.com/wallpapers/animal is no longer active. Have not seen you to fix it easily, but as a quick fix I replaced the animals with pokemons. Probably you have a better idea or you can fix the original link. --- .../src/main/java/de/javafxbuch/MainApp.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Kapitel 4/4.3.3/controls-pagination/src/main/java/de/javafxbuch/MainApp.java b/Kapitel 4/4.3.3/controls-pagination/src/main/java/de/javafxbuch/MainApp.java index f8723d9..3668799 100644 --- a/Kapitel 4/4.3.3/controls-pagination/src/main/java/de/javafxbuch/MainApp.java +++ b/Kapitel 4/4.3.3/controls-pagination/src/main/java/de/javafxbuch/MainApp.java @@ -21,15 +21,14 @@ public void start(Stage primaryStage) { pagination.setPageFactory(new Callback() { @Override public Node call(Integer i) { - return new StackPane(new ImageView("http://www.free-nature-animal-butterfly-wallpaper.com/wallpapers/animal" - + (i + 1) + ".jpg")); + return new StackPane(new ImageView("http://assets.pokemon.com/assets/cms2/img/pokedex/full/" + + String.format("%03d", i+1) + + ".png")); } }); StackPane pane = new StackPane(pagination); - Scene scene = new Scene(pane, 300, 250); - + Scene scene = new Scene(pane, 550, 550); primaryStage.setScene(scene); - primaryStage.show(); }