package pro.simpleproject.core.primary;

import java.io.IOException;

import javafx.fxml.FXMLLoader;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Pane;

public class PrimaryPaneBuilder {

	private static BorderPane pane;

	public static BorderPane getPane() {
		return pane;
	}

	public Pane build() throws IOException {
		pane = (BorderPane) FXMLLoader.load(getClass().getResource("primary.fxml"));
		AnchorPane root = new AnchorPane(pane);
		AnchorPane.setLeftAnchor(pane, 3.0);
		AnchorPane.setRightAnchor(pane, 3.0);
		AnchorPane.setTopAnchor(pane, 3.0);
		AnchorPane.setBottomAnchor(pane, 3.0);
		root.getStyleClass().add("base");
		return root;
	}

}

@@ -340,16 +340,23 @@
 %09public 
+static 
 Pane bui
@@ -423,45 +423,158 @@
 oad(
-getClass().getResource(%22primary.fxml%22
+PrimaryPaneBuilder.class.getResource(%22primary.fxml%22));%0A%09%09pane.getStylesheets().add(PrimaryPaneBuilder.class.getResource(%22primary.css%22).toExternalForm(
 ));%0A

Update PrimaryPaneBuilder.java