First part of JavaFX Scene Builder Tutorial : • JavaFX Scene Builder Tutorial for Beg...
In this video, I have explained how to make use of the BorderPane from javafx.scene.layout package to fit components in Top, Bottom, Center, Right and Left positions. Unlike other containers, It allows to easily position the components.
The top and bottom children will be resized to their preferred heights and extend the width of the borderpane. The left and right children will be resized to their preferred widths and extend the length between the top and bottom nodes. And the center node will be resized to fill the available space in the middle.
At the end of the video, I have explained how to attach graphic (Icon) to a button easily with the help of an ImageView.
Read more in the article
http://www.genuinecoder.com/javafx-sc...
Genuine Coder
http://www.genuinecoder.com/