package nl.tudelft.dnainator.ui;

import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

/**
 * DNAinator's main window, from which all interaction will occur.
 * <p>
 * The {@link #start(Stage) start} method will automatically load
 * the required fxml files, which in turn instantiates all controllers.
 * </p>
 */
public class DNAinator extends Application {
	private static final String DNAINATOR = "DNAinator";
	private static final String FXML = "/ui/fxml/dnainator.fxml";
	private static final String ICON = "/ui/icons/dnainator.png";

	@Override
	public void start(Stage primaryStage) throws Exception {
		primaryStage.setTitle(DNAINATOR);
		primaryStage.getIcons().add(new Image(getClass().getResourceAsStream(ICON)));
		primaryStage.setMaximized(true);
		try {
			BorderPane rootLayout = FXMLLoader.load(getClass().getResource(FXML));
			Scene scene = new Scene(rootLayout);
			primaryStage.setScene(scene);
		} catch (IOException e) {
			e.printStackTrace();
		}
		primaryStage.show();
	}
}

@@ -712,75 +712,243 @@
 ;%0A%0A%09
-@Override%0A%09public void start(Stage primaryStage) throws Exception %7B
+private static final int MIN_WIDTH = 300;%0A%09private static final int MIN_HEIGHT = 150;%0A%0A%09@Override%0A%09public void start(Stage primaryStage) throws Exception %7B%0A%09%09primaryStage.setMinHeight(MIN_HEIGHT);%0A%09%09primaryStage.setMinWidth(MIN_WIDTH);
 %0A%09%09p

Add minimum size to the Application window