aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/console
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/gui/console')
-rw-r--r--src/jcgp/gui/console/GUIConsole.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/jcgp/gui/console/GUIConsole.java b/src/jcgp/gui/console/GUIConsole.java
index 8fdb1a5..d8625f5 100644
--- a/src/jcgp/gui/console/GUIConsole.java
+++ b/src/jcgp/gui/console/GUIConsole.java
@@ -10,15 +10,14 @@ import jcgp.gui.GUI;
public class GUIConsole extends AnchorPane implements Console {
private boolean dragging;
- private TextArea textArea = new TextArea("Welcome to JCGP!\n");
+ private TextArea textArea = new TextArea("Welcome to JCGP!");
private StringBuffer printBuffer = new StringBuffer();
public GUIConsole() {
super();
textArea.setEditable(false);
- textArea.setWrapText(true);
-
+
setResizeListeners();
AnchorPane.setTopAnchor(textArea, GUI.RESIZE_MARGIN);
@@ -91,7 +90,7 @@ public class GUIConsole extends AnchorPane implements Console {
@Override
public void println(String s) {
- printBuffer.append(s + "\n");
+ printBuffer.append("\n" + s);
}
@Override