I created a FXML file using JavaFX Scene Builder 1.1. An AnchorPane is created by default. Why can't I modify the resizable attribute?
You can indirectly effect the bounds properties and directly set the resizable properties of the node by altering the min, pref and max height and width. You can also set the pref size by selecting the pane to be resized and dragging the resizing anchors the surround the selected pane.
AnchorPane allows the edges of child nodes to be anchored to an offset from the anchor pane's edges. If the anchor pane has a border and/or padding set, the offsets will be measured from the inside edge of those insets.
Do you want to disable window resizing? If so, you can do that in your application program:
stage.setResizable(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With