Window resizing behavior while the frame is dragging is managed by the operating system and the underlying JavaFX library.
By default, JavaFX enforces real-time resizing, meaning that each pixel of movement triggers a resize event.
It is not possible to completely disable real-time visual resizing without modifying JavaFX's native behavior, which would require more complex solutions in pure Java.
You can intercept the Form_Resize event and use a Timer to process the resizing only after a delay without any new changes.
For example, ResizeTimer is a Timer object that you configure with a short interval (200 ms).
Each call to MainForm_Resize resets the timer. Actual processing only occurs when the user has stopped resizing for the specified interval.
This method does not block visual resizing, but it allows you to defer expensive processing (such as repositioning or recalculating components).