From e145523a2ae686dd2a2ae7996639e6e8d14d992a Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Fri, 10 Oct 2014 13:22:16 +0200 Subject: Moved constants to a separate file, added a formal README --- src/jcgp/gui/console/ConsolePane.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jcgp/gui/console') diff --git a/src/jcgp/gui/console/ConsolePane.java b/src/jcgp/gui/console/ConsolePane.java index 1e07b7d..de193a5 100644 --- a/src/jcgp/gui/console/ConsolePane.java +++ b/src/jcgp/gui/console/ConsolePane.java @@ -13,7 +13,7 @@ import javafx.scene.input.MouseButton; import javafx.scene.input.MouseEvent; import javafx.scene.layout.AnchorPane; import jcgp.backend.resources.Console; -import jcgp.gui.GUI; +import jcgp.gui.constants.Constants; /** * Console pane used by the GUI to display CGP output messages. @@ -92,13 +92,13 @@ public class ConsolePane extends AnchorPane implements Console { clearConsole)); // anchor the text area so it resizes automatically - AnchorPane.setTopAnchor(textArea, GUI.RESIZE_MARGIN); + AnchorPane.setTopAnchor(textArea, Constants.RESIZE_MARGIN); AnchorPane.setBottomAnchor(textArea, 0.0); AnchorPane.setRightAnchor(textArea, 0.0); AnchorPane.setLeftAnchor(textArea, 0.0); - setMinHeight(GUI.CONSOLE_MIN_HEIGHT); - setPrefHeight(GUI.CONSOLE_MIN_HEIGHT); + setMinHeight(Constants.CONSOLE_MIN_HEIGHT); + setPrefHeight(Constants.CONSOLE_MIN_HEIGHT); getChildren().add(textArea); } -- cgit v1.2.3