package application;
	

import frontend.SceneCreator;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuBar;
import javafx.scene.layout.BorderPane;


public class TextEditor extends Application {
	
	public static final String TITLE = "Text Editor";
	
	
	@Override
	public void start(Stage primaryStage) {
	
	primaryStage.setTitle(TITLE);
	primaryStage.setIconified(false);
	primaryStage.setResizable(true);
	primaryStage.initStyle(StageStyle.DECORATED);
	
	Scene primaryScene = SceneCreator.getScene();
	SceneCreator.bindSize(primaryStage);
	primaryStage.setScene(primaryScene);
	
	primaryStage.widthProperty().addListener( (obs, oldval, newval) -> SceneCreator.print(primaryStage) );
	
	primaryStage.show();
	
	
	SceneCreator.print(primaryStage);
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}

@@ -86,16 +86,43 @@
 cation;%0A
+import javafx.scene.Scene;%0A
 import j
@@ -176,172 +176,8 @@
 le;%0A
-import javafx.scene.Group;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.control.Menu;%0Aimport javafx.scene.control.MenuBar;%0Aimport javafx.scene.layout.BorderPane;%0A
 %0A%0Apu
@@ -485,55 +485,107 @@
 %0A%09%0A%09
-Scene primaryScene = SceneCreator.getScene();%0A%09
+%0A%09primaryStage.setMinHeight(100);%0A%09primaryStage.setMinWidth(200);%0A%09SceneCreator sceneCreator = new 
 Scen
@@ -596,17 +596,8 @@
 ator
-.bindSize
 (pri
@@ -613,46 +613,56 @@
 );%0A%09
-primaryStage.setScene(primary
+%0A%09Scene primaryScene = sceneCreator.get
 Scene
+(
 );%0A
-%09
 %0A%09pr
@@ -676,146 +676,67 @@
 age.
-widthProperty().addListener( (obs, oldval, newval) -%3E SceneCreator.print(primaryStage) );%0A%09%0A%09primaryStage.show();%0A%09%0A%09%0A%09SceneCreator.print(
+setScene(primaryScene);%0A%09primaryStage.setMaximized(true);%0A%09
 prim
@@ -743,18 +743,26 @@
 aryStage
-);
+.show();%0A%09
 %0A%09%7D%0A%09%0A%09p

Modify size