package gngh;

/*
       //  Author: Benjamin Wilcox
       //  Project GNGH
 */
//feed stuff
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.*;

public class Console extends JPanel
{

    JTextArea feed = new JTextArea(10, 50);
    JScrollPane feedScroll = new JScrollPane();
    JScrollBar consolScroll = new JScrollBar();
    StringBuilder sb = new StringBuilder();

    Console()
    {
        setLayout(new BorderLayout());
        new ConsoleHandler().initialize(this);
        feed.setEditable(false);
        feed.setBackground(Color.black);
        feed.setForeground(Color.white);
        feed.setText("");
        feedScroll.setVerticalScrollBar(consolScroll);
        feedScroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        feedScroll.setViewportView(feed);
        add(feedScroll, BorderLayout.CENTER);
    }

    public void append(String string)
    {
        sb.insert(0, "   " + string + "\n");
        feed.setText(sb.toString());
        feed.setCaretPosition(0);
    }
}

@@ -403,16 +403,56 @@
 lder();%0D
+%0A    DayTracker day = new DayTracker();%0D
 %0A%0D%0A    C
@@ -989,32 +989,34 @@
 string)%0D%0A    %7B%0D%0A
+%0D%0A
         sb.inser
@@ -1023,16 +1023,38 @@
 t(0, %22  
+%22 + day.getDay() + %22 %3E
  %22 + str

formatted to show day