From c7969623b44f375e30fa3f15dcd7581609276a0f Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Fri, 4 Apr 2014 17:14:44 +0100 Subject: Parameter validation refactored and fully functional. --- src/jcgp/gui/console/GUIConsole.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/jcgp/gui/console') 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 -- cgit v1.2.3