package pro.simpleproject.core.intra;

import java.io.IOException;

import javafx.fxml.FXMLLoader;
import javafx.scene.layout.Pane;
import javafx.scene.layout.TilePane;

public class IntraConnectPaneBuilder {

	private static Pane pane;

	private Pane build() throws IOException {
		TilePane pane = (TilePane) FXMLLoader.load(getClass().getResource("intra.fxml"));
		return pane;
	}

	public static Pane get() {
		if (pane == null) {
			try {
				pane = new IntraConnectPaneBuilder().build();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return pane;
	}

}

@@ -36,37 +36,8 @@
 a;%0A%0A
-import java.io.IOException;%0A%0A
 impo
@@ -90,16 +90,20 @@
 .layout.
+Flow
 Pane;%0Aim
@@ -127,20 +127,16 @@
 .layout.
-Tile
 Pane;%0A%0Ap
@@ -211,16 +211,23 @@
 private 
+static 
 Pane bui
@@ -235,35 +235,25 @@
 d() 
-throws IOException %7B%0A%09%09Tile
+%7B%0A%09%09try %7B%0A%09%09%09Flow
 Pane
@@ -265,12 +265,12 @@
  = (
-Tile
+Flow
 Pane
@@ -291,18 +291,37 @@
 oad(
-getC
+IntraConnectPaneBuilder.c
 lass
-()
 .get
@@ -347,16 +347,17 @@
 l%22));%0A%09%09
+%09
 return p
@@ -366,176 +366,148 @@
 e;%0A%09
-%7D%0A%0A%09public static Pane get() %7B%0A%09%09if (pane == null) %7B%0A%09%09%09try %7B%0A%09%09%09%09pane = new IntraConnectPaneBuilder().build();%0A%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%7D
+%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%0A%09public static Pane get() %7B%0A%09%09if (pane == null) %7B%0A%09%09%09pane = build();
 %0A%09%09%7D

Update IntraConnectPaneBuilder.java