Pane | JavaFX GUI Tutorial for Beginners

preview_player
Показать описание
In this JavaFX GUI tutorial for Beginners we will learn how to use the Pane Class. Pane is the base class for layout panes that need to expose their list of child nodes as public so that users can freely add and remove child nodes.

The Pane class requires you to use absolute positioning of child nodes as it does not perform any layout except resizing child nodes to their preferred sizes. As a programmer, you are responsible for positioning ALL child nodes.

Eclipse Project code is available on GitHub

Check out my YouTube Channel for more FREE videos

Do you want to learn more about Java and how you can grow your skills as a Java Developer? SUBSCRIBE and ring that bell!
Рекомендации по теме
Комментарии
Автор

In this video, we explore the parent of all JavaFX layout panes - the Pane Class. Don't forget to Like, Comment and Subscribe! Cheers!

JavaCodeJunkie
Автор

Looks like configuring a pane is kinda a pain.
Ta-dam

alexop
Автор

Hi! Nice video. I get an error message in my last line of code
'root.getChildren().addAll(title, description);'
Error: 'getChildren()' has protected access in 'javafx.scene.Parent'

And when I try to type 'Pane', the IDE suggests that I do 'javafx.scene.layout.Pane' instead.
Do you think you can provide any help?

GrabThatPencil
welcome to shbcf.ru