i have the blow code the it doesn't work i can't understand what's matter?
FlowPane flowPane = new FlowPane();
System.out.println("log:brows song");
for (int i = 0; i < 10; i++) {
Image image = new Image(new File("sample/image/2.jpg").toURI().toString());
ImageView imageView = new ImageView(image);
flowPane.getChildren().add(imageView);
}
mainAnchorePaneArtist.getChildren().clear();
mainAnchorePaneArtist.getChildren().add(flowPane);
it clear all the node in mainAnchorePaneArtist but it doesn't add the flow pane or may be don't show it !!
File file = new File("sample/image/2.jpg"); System.out.println(file.exists());
will probably output false. – c0der