package com.easternedgerobotics.rov.fx;

import javafx.geometry.Insets;
import javafx.scene.Parent;
import javafx.scene.control.ToggleButton;
import javafx.scene.layout.BorderPane;

import javax.inject.Inject;

public class MainView implements View {
    static final int SPACING = 10;

    final BorderPane box = new BorderPane();

    final ToggleButton button = new ToggleButton("Start");

    @Inject
    public MainView() {
        button.setMaxWidth(Double.MAX_VALUE);
        button.setMaxHeight(Double.MAX_VALUE);
        box.setPadding(new Insets(SPACING));
        box.setCenter(button);
    }

    @Override
    public final Parent getParent() {
        return box;
    }
}

@@ -280,16 +280,99 @@
  = 10;%0A%0A
+    static final int TOGGLE_BOX_W = 256;%0A%0A    static final int TOGGLE_BOX_H = 64;%0A%0A
     fina
@@ -590,32 +590,88 @@
 ble.MAX_VALUE);%0A
+        button.setPrefSize(TOGGLE_BOX_W, TOGGLE_BOX_H);%0A
         box.setP

Set initial size for main toggle box