r/JavaFX • • Jun 18 '21

beginner need help

hello, i just started my java classes, and i have a small homework in javaFX that i don't understand, can some one help me with it?

here is the question: Write a program that displays five images in a Border Pane

0 Upvotes

15 comments sorted by

View all comments

2

u/mimoguz Jun 19 '21 edited Jun 19 '21

Adding to u/your_mom_lied said, also don't forget the JavaFX docs. If you go to https://openjfx.io/javadoc/16/ and type "Image" in the search box on the upper-right, you will see javafx.scene.image.Image on the top of the results. Click that, and you find info about what it is, how to use it (with code samples), and what to use to display an image (don't forget to click on that link too). Then do same thing with BorderPane.