package pro.simpleproject.core.entry;

import java.io.IOException;

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

public class EntryPaneBuilder {

	private static Pane pane;

	public Pane build() throws IOException {
		AnchorPane pane = (AnchorPane) FXMLLoader.load(getClass().getResource("entry.fxml"));
		return pane;
	}

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

}

@@ -36,37 +36,8 @@
 y;%0A%0A
-import java.io.IOException;%0A%0A
 impo
@@ -90,22 +90,20 @@
 .layout.
-Anchor
+Flow
 Pane;%0Aim
@@ -207,129 +207,72 @@
 lic 
-Pane build() throws IOException %7B%0A%09%09AnchorPane pane = (AnchorPane) FXMLLoader.load(getClass().getResource(%22entry.fxml%22));
+static Pane get() %7B%0A%09%09if (pane == null) %7B%0A%09%09%09pane = build();%0A%09%09%7D
 %0A%09%09r
@@ -285,29 +285,30 @@
 pane;%0A%09%7D%0A%0A%09p
-ublic
+rivate
  static Pane
@@ -312,39 +312,18 @@
 ane 
-get() %7B%0A%09%09if (pane == null
+build(
 ) %7B%0A
-%09
 %09%09tr
@@ -333,49 +333,118 @@
 %0A%09%09%09
-%09
-pane = new EntryPaneBuilder().build();%0A%09
+FlowPane pane = (FlowPane) FXMLLoader.load(EntryPaneBuilder.class.getResource(%22entry.fxml%22));%0A%09%09%09return pane;%0A
 %09%09%7D 
@@ -454,10 +454,8 @@
 ch (
-IO
 Exce
@@ -468,17 +468,16 @@
 e) %7B%0A%09%09%09
-%09
 e.printS
@@ -493,13 +493,8 @@
 ();%0A
-%09%09%09%7D%0A
 %09%09%7D%0A
@@ -498,24 +498,24 @@
 %09%7D%0A%09%09return 
-pane
+null
 ;%0A%09%7D%0A%0A%7D%0A

Update EntryPaneBuilder.java