Layout – JavaFX 2 creates a custom pane
I have seen several tutorials on customizing JavaFX controls, but there is no tutorial on how to create a custom pane layout I asked because I tried to create a flowing two-sided (imaginary form (name, value) pair) layout pane with a title I previously completed control in WPF and "migrated" it to JavaFX Besides the openjdk source, where else can I learn how to make a custom layout pane?
To clarify: I'm looking at how to create a custom pane layout manager instead of a custom control
Solution
I'm not sure about myself, but I think you should override the layoutchildren method from the parent class This method is called every time JavaFX performs layout passing
You can use the controlsfx project code as an example Just clone it and search the project for the layoutchildren string impl. org. controlsfx. spreadsheet. GridRowSkin. Java seems to be a good example