Source:
<code>public void start(Stage stage) throws Exception { Font.loadFont(this.getClass().getResourceAsStream("/ui/fonts/titillium.otf"), 20); HaskellCatalog catalog = new HaskellCatalog(); CustomUIPane tactilePane = new CustomUIPane(catalog); tactilePane.setBordersCollide(true); tactilePane.setMinWidth(3000); <START> tactilePane.setMinHeight(3000); <END> tactilePane.setMaxWidth(50000); tactilePane.setMaxHeight(50000); tactilePane.getStylesheets().add("/ui/style.css"); tactilePane.dragProcessingModeProperty().set(EventProcessingMode.HANDLER); ValueBlock valueBlock = new ValueBlock(tactilePane); DisplayBlock displayBlock = new DisplayBlock(tactilePane); tactilePane.getChildren().addAll(valueBlock, displayBlock); DebugParent debug = new DebugParent(tactilePane); debug.registerTactilePane(tactilePane); debug.setOverlayVisible(false); try { new GhciEvaluator().eval(""); } catch (GhciException e) { String msg = "It seems the Glasgow Haskell Compiler, GHC, is not " + "available. Executing programs will not be enabled. We " + "strongly recommend you install GHC, for example by " + "installing the Haskell Platform (haskell.org/platform)."; tactilePane.getChildren().add(new CustomAlert(tactilePane, msg)); e.printStackTrace(); } Scene scene = new Scene(debug); stage.setOnCloseRequest(event -> System.exit(0)); stage.setScene(scene); stage.show(); valueBlock.relocate(tactilePane.getWidth() / 2, tactilePane.getHeight() / 2); displayBlock.relocate(tactilePane.getWidth() / 2, tactilePane.getHeight() / 2 + 100); tactilePane.invalidateAll(); tactilePane.requestFocus(); }</code><technical_language>this is right: minWidth/minHeight equal maxWidth/maxHeight if want prevent JavaFX resizing pane contents. change both, neither</technical_language>

Target:
public void start(Stage stage) throws Exception { Font.loadFont(this.getClass().getResourceAsStream("/ui/fonts/titillium.otf"), 20); HaskellCatalog catalog = new HaskellCatalog(); CustomUIPane tactilePane = new CustomUIPane(catalog); tactilePane.setBordersCollide(true); tactilePane.setMinWidth(3000); tactilePane.setMinHeight(3000); tactilePane.setMaxWidth(3000); tactilePane.setMaxHeight(3000); tactilePane.dragProcessingModeProperty().set(EventProcessingMode.HANDLER); ValueBlock valueBlock = new ValueBlock(tactilePane); DisplayBlock displayBlock = new DisplayBlock(tactilePane); tactilePane.getChildren().addAll(valueBlock, displayBlock); DebugParent debug = new DebugParent(tactilePane); debug.registerTactilePane(tactilePane); debug.setOverlayVisible(false); ZoomOverlay zoomOverlay = new ZoomOverlay(debug, tactilePane); try { new GhciEvaluator().eval(""); } catch (GhciException e) { String msg = "It seems the Glasgow Haskell Compiler, GHC, is not " + "available. Executing programs will not be enabled. We " + "strongly recommend you install GHC, for example by " + "installing the Haskell Platform (haskell.org/platform)."; tactilePane.getChildren().add(new CustomAlert(tactilePane, msg)); e.printStackTrace(); } Scene scene = new Scene(zoomOverlay); scene.getStylesheets().add("/ui/style.css"); stage.setOnCloseRequest(event -> System.exit(0)); stage.setScene(scene); stage.show(); valueBlock.relocate(tactilePane.getWidth() / 2, tactilePane.getHeight() / 2); displayBlock.relocate(tactilePane.getWidth() / 2, tactilePane.getHeight() / 2 + 100); tactilePane.invalidateAll(); tactilePane.requestFocus(); }