Hi.
This is my fisrt post here, I'm really new to JavaFX, till one week ago I was programming in C# WPF and MAUI. MAUI being new on the cross-platform framework, it has a lot of good and bad things, and I tried to find something else to be more stable. And I've found JavaFX
Now, let's see what is about my desire:
I have a FlowPane wrapped in a ScrollPane. This FlowPane is populated with some custom control and I didn't found a possibility to scroll one of the childs into ScrollPane's viewport bounds when I click the control. In .Net MAUI there is a function of ScrollView which automatically will scroll the control into view and align it to the nearest side (top or bottom for vertical, left or right for horizontal) depending on the nearest side of the control.
This line of code will scroll the label Element to the end of the ScrollView, and the true parameter will start the animation for this job.
Is there such a function? Or is there a simple approach to do that? I don't need animation, I only need to scroll the ScrollPane to bring that control into viewport, to the nearest side.
Best regards.