package nars.gui;

import javax.swing.JSplitPane;
import javax.swing.SwingUtilities;
import nars.gui.input.TextInputPanel;
import nars.gui.output.LogPanel;
import nars.gui.output.SwingLogPanel;

/**
 * Combines input panel with a log output panel, divided by a splitpane
 */
public class ConsolePanel extends JSplitPane {
    
    public ConsolePanel(NARControls narControls) {
        super(JSplitPane.VERTICAL_SPLIT);
        
        LogPanel outputLog = new SwingLogPanel(narControls);
        add(outputLog, 0);
        
        TextInputPanel inputPanel = new TextInputPanel(narControls.nar);
        add(inputPanel, 1);
        
        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                setDividerLocation(0.75);
            }
            
        });
        
    }
    
}

@@ -12,16 +12,81 @@
 s.gui;%0A%0A
+import java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A
 import j
@@ -797,24 +797,250 @@
 oid run() %7B%0A
+                try %7B%0A                    Thread.sleep(50);%0A                %7D catch (InterruptedException ex) %7B%0A                    Logger.getLogger(ConsolePanel.class.getName()).log(Level.SEVERE, null, ex);%0A                %7D%0A
             
@@ -1113,24 +1113,67 @@
 );%0A        %0A
+        setDividerLocation(0.75);%0A        %0A
     %7D%0A    %0A%7D

fix horizontal bar.