package sample.InterfejsUzytkownika; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.layout.*; import java.io.IOException; public class MainController { @FXML private StackPane mainStackPane; @FXML public void initialize() throws IOException { FXMLLoader loader = new FXMLLoader(this.getClass().getResource("/InterfejsUzytkownika/PanelGlowny.fxml")); /*BorderPane borderPaneMenuGlownego = loader.load(); mainStackPane.getChildren().add(borderPaneMenuGlownego);*/ } }