aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/console
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2014-10-10 13:22:16 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2014-10-10 13:22:16 +0200
commite145523a2ae686dd2a2ae7996639e6e8d14d992a (patch)
tree3ffaa3c13fc48f3c58b72a53bb6a6ca41bcf96da /src/jcgp/gui/console
parent952b6d502da5896b59ffecdb5fa6f9c56458a02c (diff)
Moved constants to a separate file, added a formal README
Diffstat (limited to 'src/jcgp/gui/console')
-rw-r--r--src/jcgp/gui/console/ConsolePane.java8
1 files changed, 4 insertions, 4 deletions
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);
}