According to the documentation, both Region and Pane will resize any resizable child nodes to their preferred size, but will not reposition them.
So i can’t see where the differencies between these two containers remain and when use one or another.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Regionis a superclass for components that have child nodes.The difference is that
Regiondoesn’t allow to manipulate its children through the public API. TheRegion.getChildren()method is protected:Why is that?
Because
Regionis dedicated to component developers, and it allows them to choose if they want to allow API users to work with children directly (likePane,HBox, etc.) or not (like charts).