Hi,
what is the best way to center a dialog in parent, if dialog was loaded from FXML?
I tried this example:
10441972
but the method setOnShown() is wrong place for method recenter(), it's clearly visible how new dialog at the beginning appears in initial location and after that appears in the center.
And if I try to use recenter() in method setOnShowing() - getWidth() and getHeight() are not available, and I cannot calculate correct central location.
Can somebody help?
Edited by: 996064 on 25.03.2013 15:32