package stackprogramvisualiser;

import stackprogramvisualiser.gui.Gui;

import java.util.Stack;

public class StackProgramVisualiser {

	public static void main(String[] args) {
		new StackProgramVisualiser().init();
	}

	public StackProgramVisualiser() {
	}

	// let's get the party started
	public void init() {
		// dummy data
		Stack<Integer> dd = new Stack<Integer>();
		dd.push(12);
		dd.push(5);
		dd.push(19);
		dd.push(0);

		Gui gui = new Gui(this);
		gui.build();
		gui.setProgramCounter(13);
		gui.setStackDataSource(dd);
		gui.redrawStackGui();
	}

}

@@ -70,33 +70,8 @@
 i;%0A%0A
-import java.util.Stack;%0A%0A
 publ
@@ -287,127 +287,8 @@
 ) %7B%0A
-%09%09// dummy data%0A%09%09Stack%3CInteger%3E dd = new Stack%3CInteger%3E();%0A%09%09dd.push(12);%0A%09%09dd.push(5);%0A%09%09dd.push(19);%0A%09%09dd.push(0);%0A%0A
 %09%09Gu
@@ -324,16 +324,39 @@
 build();
+%0A%0A%09%09// default RHS view
 %0A%09%09gui.s
@@ -376,40 +376,9 @@
 ter(
-13);%0A%09%09gui.setStackDataSource(dd
+0
 );%0A%09

Remove dummy data