JavaFX Scene Designer: Node root different from AnchorPane

JavaFX Scene Designer starts editing AnchorPane. JavaFX does not require root Node to be AnchorPane, there are times when another class is preferred.
Is there a way to change the load container in JavaFX Scene Builder?

+5
source share
2 answers

Select a menu item:

File | New with root container

The following options are available with b44 in SceneBuilder: Kernel, border panel, or stack.

You can also directly edit the fxml file in a text editor to set the root panel, for example, the stream panel, then load the edited fxml file into SceneBuilder, and SceneBuilder will recognize it.

+4
source

, , New with root container > ... ( fxml), :

  • , , , .
  • , .
  • Edit > Trim document to selection.

Voila!

. : Arrange > Wrap in > ... Arrange > Unwrap .

+3

All Articles